Autodetecting OTA the way the Arduino IDE does
Posted: Wed Oct 11, 2023 6:11 pm
I have tried finding an answer to this question and my google-foo has let me down.
I am creating a product I would like to automatically update an ESP32 using OTA. How does the Arduino IDE autodetect available esp32-OTA? I assume it has to do with subscribing to broadcast mDNS messages over the network, or does it just brute-force check every IP on the subnet for the right open port and send a query?
To be clear: I have no trouble enabling OTA/web/programming examples on my module, and the Arduino IDE works just fine for dev, but I want to integrate that functionality into my standalone+idiotproof (c++) app.
I am sure this is a common problem/solution, sorry for the repeat.
I am creating a product I would like to automatically update an ESP32 using OTA. How does the Arduino IDE autodetect available esp32-OTA? I assume it has to do with subscribing to broadcast mDNS messages over the network, or does it just brute-force check every IP on the subnet for the right open port and send a query?
To be clear: I have no trouble enabling OTA/web/programming examples on my module, and the Arduino IDE works just fine for dev, but I want to integrate that functionality into my standalone+idiotproof (c++) app.
I am sure this is a common problem/solution, sorry for the repeat.