OTA update via Firebase Storage

fahirad
Posts: 10
Joined: Tue Feb 21, 2023 9:57 pm

OTA update via Firebase Storage

Postby fahirad » 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

Who is online

Users browsing this forum: No registered users and 56 guests