mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-11 16:06:38 +02:00
ESP8266 v0.4.16
* request only one inverter per loop (https://github.com/grindylow/ahoy/issues/53#issuecomment-1147042489) * mqtt loop interval calculated by # of inverters and inverter request interval * limit maximum number of retries * added feature request #62 (readable names for channels) * improved setup page, added javascript to hide / show channel fields ** IMORTANT: memory layout change, all configuration will be lost, except WiFI **
This commit is contained in:
parent
b995cc0a93
commit
f148c41a1f
13 changed files with 260 additions and 117 deletions
|
@ -31,6 +31,8 @@ typedef struct {
|
|||
uint8_t len[MAX_PAYLOAD_ENTRIES];
|
||||
bool complete;
|
||||
uint8_t maxPackId;
|
||||
uint8_t retransmits;
|
||||
bool requested;
|
||||
} invPayload_t;
|
||||
|
||||
|
||||
|
@ -84,11 +86,13 @@ class app : public Main {
|
|||
|
||||
uint16_t mSendTicker;
|
||||
uint16_t mSendInterval;
|
||||
uint8_t mSendLastIvId;
|
||||
|
||||
invPayload_t mPayload[MAX_NUM_INVERTERS];
|
||||
uint32_t mRxFailed;
|
||||
uint32_t mRxSuccess;
|
||||
uint8_t mLastPacketId;
|
||||
uint8_t mMaxRetransPerPyld;
|
||||
|
||||
// timer
|
||||
uint32_t mTicker;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue