Add custom headers to OTA update
Posted: Sat Apr 18, 2020 6:11 pm
Does anyone have any idea how to add/send custom headers when making an OTA firmware request?
My custom firmware update server requires some custom information from the ESP32 before it pushes a firmware/SPIFFS bin...but I cant figure out how to adapt/slip in custom headers simultaneously with the OTA process.
My project originally used the Arduino httpUpdate/OTA library, and it was really easy to add/send additional custom http headers before a firmware update request.
However I have since migrated to using ESP-IDF (v3.3), and cant figure out how to adapt/modify the IDF OTA example code to have the ESP32 send custom headers right before the OTA firmware request...
My custom firmware update server requires some custom information from the ESP32 before it pushes a firmware/SPIFFS bin...but I cant figure out how to adapt/slip in custom headers simultaneously with the OTA process.
My project originally used the Arduino httpUpdate/OTA library, and it was really easy to add/send additional custom http headers before a firmware update request.
However I have since migrated to using ESP-IDF (v3.3), and cant figure out how to adapt/modify the IDF OTA example code to have the ESP32 send custom headers right before the OTA firmware request...