diff --git a/10_wifi_conf.ino b/10_wifi_conf.ino index 6cad1c0..a188693 100644 --- a/10_wifi_conf.ino +++ b/10_wifi_conf.ino @@ -71,11 +71,13 @@ void wifi_loop() { String version = settings.name; version.concat("-v"); version.concat(FW_VERSION); + PRINTLN_SERIAL("net.status: " + String(net.status())); + t_httpUpdate_return ret = ESPhttpUpdate.update(net, OTA_SERVER, OTA_PORT, OTA_URI, version); switch(ret) { case HTTP_UPDATE_FAILED: // HTTP 403, 404 - PRINT_SERIAL("Firmware upgrade available, but update failed "); - APPEND_SERIAL(" (ERR "); + PRINT_SERIAL("Connection error, update failed "); + APPEND_SERIAL("(ERR "); APPEND_SERIAL(String(ESPhttpUpdate.getLastError())); APPEND_SERIAL(") "); APPENDLN_SERIAL(ESPhttpUpdate.getLastErrorString().c_str()); diff --git a/ESPGadget.ino b/ESPGadget.ino index da92008..7d65f4a 100644 --- a/ESPGadget.ino +++ b/ESPGadget.ino @@ -30,6 +30,7 @@ // (background: http://iot-bits.com/esp8266/esp8266-reset-causes-rst-cause/ // Version history: +// v14: Initial OTA support // v13: Refactored so config-settings are in config.h, move from Adafruit Neopixel to WS2812FX library // v12: Refactored inbound commands to hook in to the modules (module_message function), completed assimilation of (never-published) Moon_Connected sketch // v11: Simplified scheduler, back to cooperative looping