Domotique/WifiControlSensor/EEPROM.h

24 lines
434 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;
} 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);
2016-06-01 15:21:32 +02:00