Skip to content

Commit 9cd560b

Browse files
authored
Add httpupdate lib import in ota example (#8667)
Docs doesn't include any reference to include <ESP8266httpUpdate.h> library in Advanced OTA Updater section. It took me some time to find out while reading the docs
1 parent 8e79833 commit 9cd560b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: doc/ota_updates/readme.rst

+4
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@ Simple updater downloads the file every time the function is called.
523523

524524
.. code:: cpp
525525
526+
#include <ESP8266httpUpdate.h>
527+
526528
WiFiClient client;
527529
ESPhttpUpdate.update(client, "192.168.0.2", 80, "/arduino.bin");
528530
@@ -535,6 +537,8 @@ The server-side script can respond as follows: - response code 200, and send the
535537

536538
.. code:: cpp
537539
540+
#include <ESP8266httpUpdate.h>
541+
538542
WiFiClient client;
539543
t_httpUpdate_return ret = ESPhttpUpdate.update(client, "192.168.0.2", 80, "/esp/update/arduino.php", "optional current version string here");
540544
switch(ret) {

0 commit comments

Comments
 (0)