playing around
This commit is contained in:
parent
9d2faf4e4c
commit
f7224a1588
2 changed files with 5 additions and 5 deletions
|
@ -124,8 +124,8 @@ void setup() {
|
||||||
|
|
||||||
LFS_init();
|
LFS_init();
|
||||||
Serial.printf(":: Before config.test: %s\n", config.test);
|
Serial.printf(":: Before config.test: %s\n", config.test);
|
||||||
Serial.print(":: Before configWifi.ssid: ");
|
Serial.print(":: Before configWifi.dhcp: ");
|
||||||
Serial.println(configWifi.ssid);
|
Serial.println(configWifi.dhcp);
|
||||||
loadConfig();
|
loadConfig();
|
||||||
if(!existFile(CANGROW_CFG)) {
|
if(!existFile(CANGROW_CFG)) {
|
||||||
writeFile(CANGROW_CFG, "asd");
|
writeFile(CANGROW_CFG, "asd");
|
||||||
|
@ -134,8 +134,8 @@ void setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Serial.printf(":: After config.test: %s\n", config.test);
|
Serial.printf(":: After config.test: %s\n", config.test);
|
||||||
Serial.print(":: After configWifi.ssid: ");
|
Serial.print(":: After configWifi.dhcp: ");
|
||||||
Serial.println(configWifi.ssid);
|
Serial.println(configWifi.dhcp);
|
||||||
// read the configfile from LittleFS
|
// read the configfile from LittleFS
|
||||||
/* File lfs_configfile = LittleFS.open(configfile, "r");
|
/* File lfs_configfile = LittleFS.open(configfile, "r");
|
||||||
if(!lfs_configfile) {
|
if(!lfs_configfile) {
|
||||||
|
|
|
@ -75,7 +75,7 @@ Config_Grow configGrow;
|
||||||
|
|
||||||
|
|
||||||
struct Config {
|
struct Config {
|
||||||
char test[16] = "456";
|
char test[16] = "123";
|
||||||
};
|
};
|
||||||
|
|
||||||
Config config;
|
Config config;
|
||||||
|
|
Loading…
Reference in a new issue