Skip to content

Commit dda0ed2

Browse files
committed
Minor bug fix
Fix typo and update license
1 parent aa1f272 commit dda0ed2

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

source/ESP_Code/ESP_Code.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ESP8266WebServer httpServer(1337);
6161
ESP8266HTTPUpdateServer httpUpdater;
6262

6363
HTTPClient http;
64-
String version = "2.3.0";
64+
String version = "2.3.1";
6565
String latestversion = "";
6666

6767
const char* update_path = "/update";
@@ -502,7 +502,7 @@ void setup(void)
502502
server.send(200, "text/html", String()+"<html><body><a href=\"/\"><- BACK TO INDEX</a><br><br><table><tr><th colspan=\"2\">ESPloit Firmware Info</th></tr><tr><td>Version Installed:</td><td>"+version+"</td></tr><tr><td>Latest Version:</td><td>"+latestversion+"</td></tr></table><a href=\"/autoupdatefirmware\" target=\"iframe\">Click to automatically update firmware</a><br><br><iframe name=\"iframe\" style =\"border: 0;\" src=\"http://"+local_IPstr+":1337/update\"><a href=\"http://"+local_IPstr+":1337/update\">Click here to Upload Firmware</a></iframe><br><br>Manually install firmware:<br>Open Arduino IDE.<br>Pull down Sketch Menu then select Export Compiled Binary.<br>Open Sketch Folder and upload the exported BIN file.<br>You may need to manually reboot the device to reconnect.</body></html>");
503503
}
504504
else if (httpCode < 0) {
505-
server.send(200, "text/html", String()+"<html><body><a href=\"/\"><- BACK TO INDEX</a><br><br><table><tr><th colspan=\"2\">ESPloit Firmware Info</th></tr><tr><td>Version Installed:</td><td>"+version+"</td></tr><tr><td>Latest Version:</td><td>?????</td></tr></table>Could not connect to the update server<br><br><iframe name=\"iframe\" style =\"border: 0;\" src=\"http://"+local_IPstr+":1337/update\"><a href=\"http://"+local_IPstr+":1337/update\">Click here to Upload Firmware</a></iframe><br><br>Manually install firmware:<br>Open Arduino IDE.<br>Pull down Sketch Menu then select Export Compiled Binary.<br>Open Sketch Folder and upload the exported BIN file.<br>You may need to manually reboot the device to reconnect.</body></html>");
505+
server.send(200, "text/html", String()+"<html><body><a href=\"/\"><- BACK TO INDEX</a><br><br><table><tr><th colspan=\"2\">ESPloit Firmware Info</th></tr><tr><td>Version Installed:</td><td>"+version+"</td></tr><tr><td>Latest Version:</td><td>?</td></tr></table>Could not connect to the update server<br><br><iframe name=\"iframe\" style =\"border: 0;\" src=\"http://"+local_IPstr+":1337/update\"><a href=\"http://"+local_IPstr+":1337/update\">Click here to Upload Firmware</a></iframe><br><br>Manually install firmware:<br>Open Arduino IDE.<br>Pull down Sketch Menu then select Export Compiled Binary.<br>Open Sketch Folder and upload the exported BIN file.<br>You may need to manually reboot the device to reconnect.</body></html>");
506506
}
507507
});
508508

320 Bytes
Binary file not shown.

source/ESP_Code/License.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,14 @@ Core libraries used:
215215
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
216216
*/
217217

218+
/*
219+
HTTP Get request to a variable based on example code from https://techtutorialsx.com/2016/07/17/esp8266-http-get-requests/
220+
*/
221+
222+
/*
223+
Check for the latest version then fetch and update firmware from the Internet feature based on example code from https://github.com/squix78/esp8266-ci-ota/blob/master/src/main.cpp
224+
*/
225+
218226
This is not a comprehensive list, these "Core Libraries" may depend on additional
219227
libraries, more information can be obtained by viewing the source code of the main libraries.
220228
</pre>

0 commit comments

Comments
 (0)