Hey, everybody, I have two questions.
Is it possible to update the ESP32 program via OTA without being connected to the same router? I mean, could I upgrade my ESP32 connected to my home wifi from another internet connection than my home?
The next question is about connecting ESP32 to the Internet via ethernet LAN. Is there a way to get ESP32 connected to ethernet LAN?
Thank you and good work!
To answer your first question, you can refer to the following discussions on the same topic (OTA web update is not a problem in itself: you just need to solve the connectivity issue):
- Direct control of ESP-32 over WAN? (With forum question corrected)
- ESP32 / RasPi Internet connectivity from anywhere
As for your second question, you can take a look at these articles:
As Stéphane mentioned, this was recently addressed on a previous question: https://rntlab.com/question/direct-control-of-esp-32-over-wan-with-forum-question-corrected/
You can use port forwarding: How to Forward Ports on Your Router
About the second question, we don’t have any tutorials or resources about that subject. I suggest taking a look at the resources suggested by Stéphane.
Thank you very much for the advice, I’ll have to check it more carefully.
I have a new question that has come up after this, is it possible for the OTA process to be reversed? I mean, is it possible that esp32 asks a server or any API if there are new updates and that it can update itself?
I think it is possible. Take a look at Rui’s answer in this post: https://rntlab.com/question/esp32-ota-updates/
I hope this is what you’re looking for.