maintenance mode (experimental)
This commit is contained in:
1 parent
cb07ad4414
commit
f5d5e7c6fc
9 files changed
+142
-16
No files matched your search
+3
-2
@@ -58,7 +58,8 @@ enum runmode_t {
|
||||
RUNMODE_NORMAL,
|
||||
RUNMODE_WAKEUP,
|
||||
RUNMODE_UPDATE,
|
||||
RUNMODE_SLEEP
|
||||
RUNMODE_SLEEP,
|
||||
RUNMODE_MAINTENANCE
|
||||
};
|
||||
|
||||
// Struct holding devices's runtime configuration
|
||||
@@ -83,7 +84,6 @@ typedef struct __attribute__((packed)) {
|
||||
uint8_t macfilter; // 0=disabled, 1=enabled
|
||||
uint8_t rgblum; // RGB Led luminosity (0..100%)
|
||||
uint8_t monitormode; // 0=disabled, 1=enabled
|
||||
uint8_t runmode; // 0=normal, 1=update
|
||||
uint8_t payloadmask; // bitswitches for payload data
|
||||
uint8_t enscount; // 0=disabled 1= enabled
|
||||
|
||||
@@ -149,5 +149,6 @@ extern TaskHandle_t irqHandlerTask, ClockTask, macProcessTask;
|
||||
extern TimerHandle_t WifiChanTimer;
|
||||
extern Timezone myTZ;
|
||||
extern RTC_DATA_ATTR runmode_t RTC_runmode;
|
||||
extern char clientId[20]; // generated device name
|
||||
|
||||
#endif
|
||||
@@ -13,8 +13,13 @@
|
||||
#include <WiFiClientSecure.h>
|
||||
#include <BintrayClient.h>
|
||||
|
||||
#include <WiFiClient.h>
|
||||
#include <WebServer.h>
|
||||
#include <ESPmDNS.h>
|
||||
|
||||
int do_ota_update();
|
||||
void start_ota_update();
|
||||
void start_maintenance();
|
||||
void ota_display(const uint8_t row, const std::string status,
|
||||
const std::string msg);
|
||||
void show_progress(unsigned long current, unsigned long size);
|
||||
|
||||
Reference in new issue
Block a user