Skip to content

Commit

Permalink
change firmware update page
Browse files Browse the repository at this point in the history
  • Loading branch information
SK21 committed Feb 24, 2024
1 parent 8252b0e commit 465c5cb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Binary file modified Modules/ESP32 Rate/RC_ESP32.ino.bin
Binary file not shown.
3 changes: 2 additions & 1 deletion Modules/ESP32 Rate/RC_ESP32/Begin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,15 @@ void DoSetup()
server.on("/page2", HandlePage2);
server.on("/ButtonPressed", ButtonPressed);
server.onNotFound(HandleRoot);
server.begin();

// OTA
server.on("/myurl", HTTP_GET, []() {
server.sendHeader("Connection", "close");
server.send(200, "text/plain", "Hello there!");
});

server.begin();

/* INITIALIZE ESP2SOTA LIBRARY */
ESP2SOTA.begin(&server);

Expand Down
1 change: 1 addition & 0 deletions Modules/ESP32 Rate/RC_ESP32/PgStart.ino
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ String GetPage0()
st += "";
st += " <p> <a class='button-72' href='/page1' >Switches</a> </p>";
st += " <p> <a class='button-72' href='/page2' >Network</a> </p>";
st += " <p> <a class='button-72' href='/update' >Update Firmware</a> </p>";
st += "";
st += " </form>";
st += "";
Expand Down
2 changes: 1 addition & 1 deletion Modules/ESP32 Rate/RC_ESP32/RC_ESP32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void WiFiStationDisconnected(WiFiEvent_t event, WiFiEventInfo_t info)
Serial.println(DisconnectCount);
WiFi.begin(MDL.SSID, MDL.Password);

if (DisconnectCount > 15)
if (DisconnectCount > 10)
{
// use AP mode only
MDL.WifiMode = 0;
Expand Down

0 comments on commit 465c5cb

Please sign in to comment.