remove old stuff

This commit is contained in:
Marcus 2024-10-19 02:52:17 +02:00
parent 219586de93
commit 52cd7d469f

View file

@ -100,7 +100,7 @@ void setup() {
Serial.println(" - NOW! (2 seconds left) II");
// blink with the onboard LED on D4 (PinWIPE)
// blink with the onboard LED on D4/GPIO2 (PinWIPE)
for(byte i = 0; i <= 6 ; i++) {
if(i % 2) {
digitalWrite(PinWIPE, LOW);
@ -136,33 +136,7 @@ void setup() {
Serial.printf(":: After config.test: %s\n", config.test);
Serial.print(":: After configWifi.dhcp: ");
Serial.println(configWifi.dhcp);
// read the configfile from LittleFS
/* File lfs_configfile = LittleFS.open(configfile, "r");
if(!lfs_configfile) {
Serial.println("!! LittleFS: config.json not found, creating it !!");
lfs_configfile.close();
lfs_configfile = LittleFS.open(configfile, "w");
lfs_configfile.close();
if(lfs_configfile) {
Serial.println(":: LittleFS: config.json successfully created");
// write into the file
lfs_configfile.print("{test: }");
// close the file
lfs_configfile.close();
}
} else {
Serial.println(":: LittleFS: config.json successfully opened");
String configfile_content = "";
while (lfs_configfile.available()) {
configfile_content += (char)lfs_configfile.read();
}
Serial.println("-- LittleFS: config.json content --");
Serial.println(configfile_content);
Serial.println("-- LittleFS: config.json end --");
}
*/
}
bool alrdySaved = false;