Replies: 9 comments
-
Related: #311 |
Beta Was this translation helpful? Give feedback.
-
It was already implemented in this example and the topic you mentioned. The only requirement is you have to send your Email with that bin file as attachment via the standard mail client app or using this library to send Email. This is to make sure that the attachment size property was properly set in the message header. This attachment size will be used to calculate the firmware size for proper flash space preparation. |
Beta Was this translation helpful? Give feedback.
-
I followed the steps described, and the ESP32 was able to log in and update, but I would like more guidance, please:
The idea of deleting the message is to prevent an infinite update loop from occurring, as the idea is that the updated firmware can also update itself. Another thing is the issue of the firmware sent accidentally having a BUG and then not being able to perform the next update.
Since it is possible for the ESP32 update to be done via the serial port, can you provide an example in this way? |
Beta Was this translation helpful? Give feedback.
-
I found this esp-serial-flasher , it seems possible. |
Beta Was this translation helpful? Give feedback.
-
The update will not happen automatically that causes infinite loop updating unless this condition met. And you have to search for unseen or new email and set that message as seen before fetching with those UIDs or sequence numbers. It is easy for you to manage this with your code to change the option Any firmware update over other mechanisms of Email is out of library scope and you have to done it with your code. |
Beta Was this translation helpful? Give feedback.
-
For delete, you have to use search too. Note that, you can do anything after OTA update before you restart your device e.g. search and delete messages. |
Beta Was this translation helpful? Give feedback.
-
I noticed that it was not necessary to use the SD card to update via email. Is the SD card necessary if an ESP32 programs another ESP32 via UART? In the example code it appears that the SD card is used:
https://github.com/espressif/esp-serial-flasher/tree/master/examples/esp32_example |
Beta Was this translation helpful? Give feedback.
-
For OTA, it is done on-the-fly with chunks data and the filesystems (SD and Flash) are not needed. The one of SD or flash filesystem was used in IMAP examples for the messages and attachments download which the OTA case is different and was not require filesystem for download. |
Beta Was this translation helpful? Give feedback.
-
You can remove |
Beta Was this translation helpful? Give feedback.
-
One of the difficulties in carrying out OTA via the Internet is the redirection of router ports. Or complex storage servers are used.
Since ESP32 firmwares are generally not very large (below 10MB), would it be possible to use this library to perform OTA via email?
Beta Was this translation helpful? Give feedback.
All reactions