mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 07:26:38 +02:00
* added mqtt
This commit is contained in:
parent
8bfbd8d45b
commit
c00be7bb35
10 changed files with 299 additions and 38 deletions
|
@ -11,6 +11,8 @@
|
|||
#include "hoymiles.h"
|
||||
#include "hm1200Decode.h"
|
||||
|
||||
#include "mqtt.h"
|
||||
|
||||
|
||||
class app : public Main {
|
||||
public:
|
||||
|
@ -26,6 +28,7 @@ class app : public Main {
|
|||
void sendPacket(uint8_t data[], uint8_t length);
|
||||
|
||||
void sendTicker(void);
|
||||
void mqttTicker(void);
|
||||
|
||||
void showIndex(void);
|
||||
void showSetup(void);
|
||||
|
@ -33,6 +36,7 @@ class app : public Main {
|
|||
void showCmdStatistics(void);
|
||||
void showHoymiles(void);
|
||||
void showLiveData(void);
|
||||
void showMqtt(void);
|
||||
|
||||
void saveValues(bool webSend);
|
||||
void dumpBuf(uint8_t buf[], uint8_t len);
|
||||
|
@ -55,6 +59,11 @@ class app : public Main {
|
|||
|
||||
uint32_t mCmds[6];
|
||||
uint32_t mChannelStat[4];
|
||||
|
||||
// mqtt
|
||||
mqtt mMqtt;
|
||||
Ticker *mMqttTicker;
|
||||
bool mMqttEvt;
|
||||
};
|
||||
|
||||
#endif /*__APP_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue