From 8eec1863ebe81ee36c5efd2e96fcd1e5484bcef2 Mon Sep 17 00:00:00 2001 From: Chris Howell Date: Thu, 25 Aug 2016 10:26:55 -0700 Subject: [PATCH] Added Firmware update Added ability to update firmware from a file --- OpenEVSE_RAPI_WiFi_ESP8266.ino | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/OpenEVSE_RAPI_WiFi_ESP8266.ino b/OpenEVSE_RAPI_WiFi_ESP8266.ino index 2c7c48a..2feee96 100644 --- a/OpenEVSE_RAPI_WiFi_ESP8266.ino +++ b/OpenEVSE_RAPI_WiFi_ESP8266.ino @@ -21,9 +21,11 @@ #include #include #include +#include #include ESP8266WebServer server(80); +ESP8266HTTPUpdateServer httpUpdater; //Default SSID and PASSWORD for AP Access Point Mode const char* ssid = "OpenEVSE"; @@ -213,7 +215,9 @@ void setup() { s += st; s += "

"; s += "

"; - s += "Status RAPI "; + s += "Status RAPI

"; + s += "

Firmware Update

"; + s += ""; s += "\r\n\r\n"; server.send(200, "text/html", s); }); @@ -389,8 +393,10 @@ void setup() { s += "\r\n\r\n"; server.send(200, "text/html", s); }); - + + httpUpdater.setup(&server); server.begin(); + httpUpdater.setup(&server); //Serial.println("HTTP server started"); delay(100); Timer = millis();