# Flashing ESP32 wifi devices over the air(OTA) using node-red?

**URL:** <https://discourse.nodered.org/t/flashing-esp32-wifi-devices-over-the-air-ota-using-node-red/29978>\
**Category:** General\
**Created:** [13 July 2020 06:47 UTC](https://discourse.nodered.org/t/flashing-esp32-wifi-devices-over-the-air-ota-using-node-red/29978 "2020-07-13T06:47:54Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![zazas321](https://avatars.discourse-cdn.com/v4/letter/z/59ef9b/32.png) [@zazas321](https://discourse.nodered.org/u/zazas321)\
**Post date:** [14 July 2020 08:42 UTC](https://discourse.nodered.org/t/flashing-esp32-wifi-devices-over-the-air-ota-using-node-red/29978/8 "2020-07-14T08:42:39Z")

</div>

> [@greenembrace](#):
>
> HTTPUpdate

Thanks for shining some light.  
I am using HTTPUpdate example code - just changed the ID and PSWD of my network and URL of ESPhttpUpdate.

I pass the IP of the raspberry PI , port 80 and then the directory where i hold the binary file which is /var/www/html/uploads/dev1.bin  
t\_httpUpdate\_return ret = ESPhttpUpdate.update("192.168.100.158",80, "uploads/dev1.bin");  
however, I get this error:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/8/48e8ca9cca1627505a658d0e191f99d0bd457dc7.png)

---

_[View the full topic](https://discourse.nodered.org/t/flashing-esp32-wifi-devices-over-the-air-ota-using-node-red/29978)._
