update confg + ota

This commit is contained in:
2022-01-03 17:14:48 +01:00
parent c340ab9d2a
commit f2eeba9b73
12 changed files with 170 additions and 48 deletions

View File

@@ -3,11 +3,15 @@
#include "secrets.h"
#include "defines.h"
#include "process.h"
#include "config.h"
#include "LITTLEFS.h"
#define WIFICONNECTINTERVAL 1000
typedef enum{
otaInit,
otaScan,
otaConnect,
otaSetup,
otaInitDone,
@@ -18,8 +22,9 @@
}OTASTATES;
class OtaProcess_class : public processClass
{
uint32_t m_lastconnectTime;
String m_psk = "";
String m_ssid = "";
void active(void);
bool initialize(void);