From 225d7c7c1abf8cd09af57e7b172a293ad8483292 Mon Sep 17 00:00:00 2001 From: Amjed Ali <86785660+amjed-ali-k@users.noreply.github.com> Date: Tue, 6 Sep 2022 13:18:36 +0530 Subject: [PATCH] Add httpupdate lib import in ota example 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 53ce8c2707..c3ade3f8b8 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) {