Domotique/WifiControlSensor/EEPROM.h

29 lines
589 B
C
Raw Normal View History

2016-06-01 15:21:32 +02:00
#pragma once
2016-11-20 00:06:31 +01:00
typedef struct productConfig_t {
uint8_t bootMode;
char *ssid;
char *password;
char *host;
char *mqttServer;
char *mqttUser;
char *mqttPasswd;
int mqttPort;
int ip_mode;
uint32_t ip;
uint32_t gw;
uint32_t mask;
uint32_t dns;
uint32_t dns2;
2019-06-03 00:05:21 +02:00
uint8_t channel;
char *bssid;
2022-09-10 23:18:52 +02:00
uint32_t samplingPeriod;
2016-11-20 00:06:31 +01:00
} productConfig;
int EepromSaveConfig(productConfig &config);
2016-06-01 15:21:32 +02:00
int EepromSaveBootMode(uint8_t bootMode);
2016-11-20 00:06:31 +01:00
void EepromReadConfig(productConfig &config);
2020-07-28 19:37:19 +02:00
int EepromSaveBME680State(uint8_t *bsecState);
int EepromLoadBME680State(uint8_t *bsecState);