update game
This commit is contained in:
@@ -1,10 +1,34 @@
|
||||
#pragma once
|
||||
#include "ArduinoOTA.h"
|
||||
#include "secrets.h"
|
||||
// #include <WiFi.h>
|
||||
// #include <AsyncTCP.h>
|
||||
// #include <ESPAsyncWebServer.h>
|
||||
// #include <AsyncElegantOTA.h>
|
||||
#include "defines.h"
|
||||
#include "process.h"
|
||||
|
||||
#include "LITTLEFS.h"
|
||||
|
||||
class OtaProcess_class : public processClass
|
||||
{
|
||||
typedef enum{
|
||||
otaInit,
|
||||
otaConnect,
|
||||
otaSetup,
|
||||
otaStart,
|
||||
otaInitDone,
|
||||
otaError
|
||||
}OTASTATES;
|
||||
|
||||
OTASTATES m_otaState = otaInit;
|
||||
|
||||
void active(void);
|
||||
bool initialize(void);
|
||||
void idle(void);
|
||||
void halted(void);
|
||||
void disabled(void);
|
||||
void stopped(void);
|
||||
|
||||
public:
|
||||
OtaProcess_class(uint32_t timeout):processClass(timeout){}
|
||||
};
|
||||
|
||||
void initOta(void);
|
||||
void handleOta(void);
|
||||
Reference in New Issue
Block a user