extend power statemachine

This commit is contained in:
2022-01-02 18:50:22 +01:00
parent 7509858aa4
commit c340ab9d2a
8 changed files with 178 additions and 39 deletions

View File

@@ -6,18 +6,20 @@
#include "LITTLEFS.h"
class OtaProcess_class : public processClass
{
typedef enum{
otaInit,
otaConnect,
otaSetup,
otaStart,
otaInitDone,
otaStart,
otaBusy,
otaDone,
otaError
}OTASTATES;
class OtaProcess_class : public processClass
{
OTASTATES m_otaState = otaInit;
void active(void);
bool initialize(void);
@@ -28,7 +30,12 @@ class OtaProcess_class : public processClass
public:
OtaProcess_class(uint32_t timeout):processClass(timeout){}
OTASTATES m_otaState = otaInit;
};
void initOta(void);
void handleOta(void);
void handleOta(void);
OTASTATES getOtaState(void);
void otaEnable(void);