OTA update via Firebase Storage
Posted: Tue Jan 30, 2024 3:51 pm
Hello!
I have successfully ran simple_ota_example, following the guidelines from README file. Now, I want to be able to store new firmware somewhere outside of my LAN, and I am thinking of using Firebase Storage for that purpose (I have not used it before with ESP32).
However, I can find very little on this topic, most examples online are based on Arduino development, and I am using esp-idf framework in vscode.
I was able to do OTA update by modifying the URL in the simple_ota_example configuration (I used the URL that can be copied from the Firebase console) and of course generating appropriate certificate. But I need to be able to get the firmware from the storage without knowing the URL before-hand, since each added file will have a different token and therefore a different URL.
Can anyone guide me to a good solution and the way this should be handled?
My idea is to somehow get the url dynamically, so I can still use esp_https_ota for ota update, but I do not know how to do that.
Thanks in advance,
Fahira
I have successfully ran simple_ota_example, following the guidelines from README file. Now, I want to be able to store new firmware somewhere outside of my LAN, and I am thinking of using Firebase Storage for that purpose (I have not used it before with ESP32).
However, I can find very little on this topic, most examples online are based on Arduino development, and I am using esp-idf framework in vscode.
I was able to do OTA update by modifying the URL in the simple_ota_example configuration (I used the URL that can be copied from the Firebase console) and of course generating appropriate certificate. But I need to be able to get the firmware from the storage without knowing the URL before-hand, since each added file will have a different token and therefore a different URL.
Can anyone guide me to a good solution and the way this should be handled?
My idea is to somehow get the url dynamically, so I can still use esp_https_ota for ota update, but I do not know how to do that.
Thanks in advance,
Fahira