mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-26 14:26:59 +02:00
Add disclaimer to the Ahoy
This commit is contained in:
parent
f2a794d518
commit
86b3137b6a
6 changed files with 36 additions and 1 deletions
|
@ -75,6 +75,7 @@ typedef enum {
|
|||
#define PWD_LEN 64
|
||||
#define DEVNAME_LEN 16
|
||||
#define CRC_LEN 2 // uint16_t
|
||||
#define DISCLAIMER 1
|
||||
|
||||
#define INV_ADDR_LEN MAX_NUM_INVERTERS * 8 // uint64_t
|
||||
#define INV_NAME_LEN MAX_NUM_INVERTERS * MAX_NAME_LENGTH // char[]
|
||||
|
@ -125,6 +126,9 @@ typedef struct {
|
|||
uint8_t pinIrq;
|
||||
uint8_t amplifierPower;
|
||||
|
||||
// Disclaimer
|
||||
bool disclaimer;
|
||||
|
||||
// ntp
|
||||
char ntpAddr[NTP_ADDR_LEN];
|
||||
uint16_t ntpPort;
|
||||
|
@ -149,7 +153,7 @@ typedef struct {
|
|||
|
||||
#define CFG_MQTT_LEN MQTT_ADDR_LEN + 2 + MQTT_USER_LEN + MQTT_PWD_LEN +MQTT_TOPIC_LEN
|
||||
#define CFG_SYS_LEN DEVNAME_LEN + SSID_LEN + PWD_LEN + 1
|
||||
#define CFG_LEN 7 + NTP_ADDR_LEN + 2 + CFG_MQTT_LEN + 4
|
||||
#define CFG_LEN 7 + NTP_ADDR_LEN + 2 + CFG_MQTT_LEN + 4 + DISCLAIMER
|
||||
|
||||
#define ADDR_START 0
|
||||
#define ADDR_CFG_SYS ADDR_START
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue