From 9cd560b451f1649ddbe436616d4879215876f160 Mon Sep 17 00:00:00 2001 From: Amju <86785660+amjed-ali-k@users.noreply.github.com> Date: Wed, 14 Dec 2022 16:37:41 +0530 Subject: [PATCH] Add httpupdate lib import in ota example (#8667) Docs doesn't include any reference to include library in Advanced OTA Updater section. It took me some time to find out while reading the docs --- doc/ota_updates/readme.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/ota_updates/readme.rst b/doc/ota_updates/readme.rst index a2dcd4d8c..373327fe8 100755 --- a/doc/ota_updates/readme.rst +++ b/doc/ota_updates/readme.rst @@ -523,6 +523,8 @@ Simple updater downloads the file every time the function is called. .. code:: cpp + #include + WiFiClient client; ESPhttpUpdate.update(client, "192.168.0.2", 80, "/arduino.bin"); @@ -535,6 +537,8 @@ The server-side script can respond as follows: - response code 200, and send the .. code:: cpp + #include + 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) {