mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-12 00:16:42 +02:00
* improved tickers, only one ticker is active
* added feature to use the ESP as access point for all the time * added serial features to setup
This commit is contained in:
parent
4c3852cde4
commit
8f444cee2f
12 changed files with 155 additions and 88 deletions
|
@ -31,7 +31,7 @@ class app : public Main {
|
|||
app();
|
||||
~app();
|
||||
|
||||
void setup(const char *ssid, const char *pwd, uint32_t timeout);
|
||||
void setup(uint32_t timeout);
|
||||
void loop(void);
|
||||
void handleIntr(void);
|
||||
|
||||
|
@ -70,19 +70,24 @@ class app : public Main {
|
|||
|
||||
HmSystemType *mSys;
|
||||
|
||||
uint32_t mSendTicker;
|
||||
uint16_t mSendTicker;
|
||||
uint16_t mSendInterval;
|
||||
|
||||
uint32_t mCmds[DBG_CMD_LIST_LEN+1];
|
||||
//uint32_t mChannelStat[4];
|
||||
uint32_t mRecCnt;
|
||||
|
||||
// timer
|
||||
uint32_t mTicker;
|
||||
bool mSerialValues;
|
||||
bool mSerialDebug;
|
||||
|
||||
// mqtt
|
||||
mqtt mMqtt;
|
||||
uint32_t mMqttTicker;
|
||||
uint16_t mMqttTicker;
|
||||
uint16_t mMqttInterval;
|
||||
bool mMqttActive;
|
||||
uint32_t mSerialTicker;
|
||||
uint16_t mSerialTicker;
|
||||
uint16_t mSerialInterval;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue