rename wifi module, prepare for ota stuffs

This commit is contained in:
2019-11-09 21:36:17 +01:00
parent e8c88665b9
commit 392a2523c0
2 changed files with 26 additions and 1 deletions

26
10_wifi_conf.ino Normal file
View File

@@ -0,0 +1,26 @@
// Future use
wifi_setup() {
}
wifi_loop() {
}
/*
// Check for firmware upgrades
Serial.println("Checking for firmware upgrade");
t_httpUpdate_return ret = ESPhttpUpdate.update(wificlient, WTR_SERVER, WTR_SRVPORT, "/fw/", nodeversion);
switch(ret) {
case HTTP_UPDATE_FAILED: // HTTP 403, 404
Serial.printf("Firmware upgrade available, but update failed (%d): %s", ESPhttpUpdate.getLastError(), ESPhttpUpdate.getLastErrorString().c_str());
break;
case HTTP_UPDATE_NO_UPDATES: // HTTP 304
Serial.println("No firmware upgrade available");
break;
case HTTP_UPDATE_OK: // HTTP 200
Serial.println("Firmware upgrade available, upgraded ok."); // may not called we reboot the ESP
break;
}
*/

View File

@@ -1 +0,0 @@
// Future use