RainSensor/configuration.h
2018-04-27 23:37:40 +02:00

27 lines
580 B
C

typedef struct {
uint32_t magic;
char confUser[16];
char confPasswd[16];
char wifiSsid[32];
char wifiKey[64];
char mqttBroker[32];
char mqttUser[32];
char mqttPass[32];
char mqttClientId[32];
uint32_t mqttPort;
char mqttTopic[64];
char mqttDebugTopic[64];
uint32_t debugMode;
uint32_t period;
uint32_t debounce;
float spoonfill;
float measureArea;
} tConfigBlock;
extern const uint32_t MAGIC;
extern tConfigBlock configBlock;
extern const char* CONFIG_SSID;
void configServeIndex();
void configServeGetConfiguration();
void showConfiguration();