@@ -104,4 +104,6 @@ CONFIG_HTTPD_MAX_URI_LEN=512
|
|||||||
CONFIG_HTTPD_ERR_RESP_NO_DELAY=y
|
CONFIG_HTTPD_ERR_RESP_NO_DELAY=y
|
||||||
CONFIG_HTTPD_PURGE_BUF_LEN=32
|
CONFIG_HTTPD_PURGE_BUF_LEN=32
|
||||||
CONFIG_HTTPD_WS_SUPPORT=y
|
CONFIG_HTTPD_WS_SUPPORT=y
|
||||||
CONFIG_ESP_HTTPS_SERVER_ENABLE=n
|
CONFIG_ESP_HTTPS_SERVER_ENABLE=n
|
||||||
|
CONFIG_BOOTLOADER_WDT_DISABLE_IN_USER_CODE=y
|
||||||
|
CONFIG_BOOTLOADER_WDT_TIME_MS=90000
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
#include "networkDevices/WifiDevice.h"
|
#include "networkDevices/WifiDevice.h"
|
||||||
#endif
|
#endif
|
||||||
#include "networkDevices/EthernetDevice.h"
|
#include "networkDevices/EthernetDevice.h"
|
||||||
|
#include "hal/wdt_hal.h"
|
||||||
|
|
||||||
NukiNetwork* NukiNetwork::_inst = nullptr;
|
NukiNetwork* NukiNetwork::_inst = nullptr;
|
||||||
|
|
||||||
@@ -225,6 +226,10 @@ void NukiNetwork::initialize()
|
|||||||
|
|
||||||
bool NukiNetwork::update()
|
bool NukiNetwork::update()
|
||||||
{
|
{
|
||||||
|
wdt_hal_context_t rtc_wdt_ctx = RWDT_HAL_CONTEXT_DEFAULT();
|
||||||
|
wdt_hal_write_protect_disable(&rtc_wdt_ctx);
|
||||||
|
wdt_hal_feed(&rtc_wdt_ctx);
|
||||||
|
wdt_hal_write_protect_enable(&rtc_wdt_ctx);
|
||||||
_device->update();
|
_device->update();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -367,6 +372,10 @@ void NukiNetwork::readSettings()
|
|||||||
|
|
||||||
bool NukiNetwork::update()
|
bool NukiNetwork::update()
|
||||||
{
|
{
|
||||||
|
wdt_hal_context_t rtc_wdt_ctx = RWDT_HAL_CONTEXT_DEFAULT();
|
||||||
|
wdt_hal_write_protect_disable(&rtc_wdt_ctx);
|
||||||
|
wdt_hal_feed(&rtc_wdt_ctx);
|
||||||
|
wdt_hal_write_protect_enable(&rtc_wdt_ctx);
|
||||||
int64_t ts = espMillis();
|
int64_t ts = espMillis();
|
||||||
_device->update();
|
_device->update();
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#include "RestartReason.h"
|
#include "RestartReason.h"
|
||||||
#include <NukiOpenerUtils.h>
|
#include <NukiOpenerUtils.h>
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
|
#include "hal/wdt_hal.h"
|
||||||
|
|
||||||
NukiOpenerWrapper* nukiOpenerInst;
|
NukiOpenerWrapper* nukiOpenerInst;
|
||||||
Preferences* nukiOpenerPreferences = nullptr;
|
Preferences* nukiOpenerPreferences = nullptr;
|
||||||
@@ -183,6 +184,10 @@ void NukiOpenerWrapper::readSettings()
|
|||||||
|
|
||||||
void NukiOpenerWrapper::update()
|
void NukiOpenerWrapper::update()
|
||||||
{
|
{
|
||||||
|
wdt_hal_context_t rtc_wdt_ctx = RWDT_HAL_CONTEXT_DEFAULT();
|
||||||
|
wdt_hal_write_protect_disable(&rtc_wdt_ctx);
|
||||||
|
wdt_hal_feed(&rtc_wdt_ctx);
|
||||||
|
wdt_hal_write_protect_enable(&rtc_wdt_ctx);
|
||||||
if(!_paired)
|
if(!_paired)
|
||||||
{
|
{
|
||||||
Log->println(F("Nuki opener start pairing"));
|
Log->println(F("Nuki opener start pairing"));
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#include "RestartReason.h"
|
#include "RestartReason.h"
|
||||||
#include <NukiLockUtils.h>
|
#include <NukiLockUtils.h>
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
|
#include "hal/wdt_hal.h"
|
||||||
|
|
||||||
NukiWrapper* nukiInst = nullptr;
|
NukiWrapper* nukiInst = nullptr;
|
||||||
|
|
||||||
@@ -190,6 +191,10 @@ void NukiWrapper::readSettings()
|
|||||||
|
|
||||||
void NukiWrapper::update()
|
void NukiWrapper::update()
|
||||||
{
|
{
|
||||||
|
wdt_hal_context_t rtc_wdt_ctx = RWDT_HAL_CONTEXT_DEFAULT();
|
||||||
|
wdt_hal_write_protect_disable(&rtc_wdt_ctx);
|
||||||
|
wdt_hal_feed(&rtc_wdt_ctx);
|
||||||
|
wdt_hal_write_protect_enable(&rtc_wdt_ctx);
|
||||||
if(!_paired)
|
if(!_paired)
|
||||||
{
|
{
|
||||||
Log->println(F("Nuki lock start pairing"));
|
Log->println(F("Nuki lock start pairing"));
|
||||||
|
|||||||
Reference in New Issue
Block a user