mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 23:46:37 +02:00
* added erase application settings
* HM1500 as selectable in setup * Added new commands to statistic (0x82, 0x83)
This commit is contained in:
parent
a00ab4e48d
commit
df9f050313
11 changed files with 71 additions and 35 deletions
|
@ -22,6 +22,9 @@ const char* const wemosPins[] = {"D3 (GPIO0)", "TX (GPIO1)", "D4 (GPIO2)", "RX (
|
|||
const char* const pinNames[] = {"CS", "CE", "IRQ"};
|
||||
const char* const pinArgNames[] = {"pinCs", "pinCe", "pinIrq"};
|
||||
|
||||
const uint8_t dbgCmds[] = {0x01, 0x02, 0x03, 0x81, 0x82, 0x83, 0x84};
|
||||
#define DBG_CMD_LIST_LEN 7
|
||||
|
||||
class app : public Main {
|
||||
public:
|
||||
app();
|
||||
|
@ -42,7 +45,8 @@ class app : public Main {
|
|||
void showIndex(void);
|
||||
void showSetup(void);
|
||||
void showSave(void);
|
||||
void showCmdStatistics(void);
|
||||
void showErase(void);
|
||||
void showStatistics(void);
|
||||
void showHoymiles(void);
|
||||
void showLiveData(void);
|
||||
void showMqtt(void);
|
||||
|
@ -65,6 +69,7 @@ class app : public Main {
|
|||
return ret;
|
||||
}
|
||||
|
||||
|
||||
uint8_t mState;
|
||||
bool mKeyPressed;
|
||||
|
||||
|
@ -73,8 +78,8 @@ class app : public Main {
|
|||
Ticker *mSendTicker;
|
||||
bool mFlagSend;
|
||||
|
||||
uint32_t mCmds[6];
|
||||
uint32_t mChannelStat[4];
|
||||
uint32_t mCmds[DBG_CMD_LIST_LEN+1];
|
||||
//uint32_t mChannelStat[4];
|
||||
uint32_t mRecCnt;
|
||||
|
||||
// mqtt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue