1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

ESP266httpUpdate: remove dead API and fix doc (#8063)

This commit is contained in:
david gauchard
2021-06-23 03:22:42 +02:00
committed by GitHub
parent d283541380
commit 32fad07a70
3 changed files with 9 additions and 167 deletions

View File

@ -530,7 +530,8 @@ Simple updater downloads the file every time the function is called.
.. code:: cpp
ESPhttpUpdate.update("192.168.0.2", 80, "/arduino.bin");
WiFiClient client;
ESPhttpUpdate.update(client, "192.168.0.2", 80, "/arduino.bin");
Advanced updater
^^^^^^^^^^^^^^^^
@ -541,7 +542,8 @@ The server-side script can respond as follows: - response code 200, and send the
.. code:: cpp
t_httpUpdate_return ret = ESPhttpUpdate.update("192.168.0.2", 80, "/esp/update/arduino.php", "optional current version string here");
WiFiClient client;
t_httpUpdate_return ret = ESPhttpUpdate.update(client, "192.168.0.2", 80, "/esp/update/arduino.php", "optional current version string here");
switch(ret) {
case HTTP_UPDATE_FAILED:
Serial.println("[update] Update failed.");
@ -554,6 +556,11 @@ The server-side script can respond as follows: - response code 200, and send the
break;
}
TLS updater
^^^^^^^^^^^
Please read and try the examples provided with the library.
Server request handling
~~~~~~~~~~~~~~~~~~~~~~~