Open hitecSmartHome opened 1 month ago
Update
already supports it so basically
t_httpUpdate_return updateSpiffs(NetworkClient &client, const String &url, const String ¤tVersion = "", HTTPUpdateRequestCB requestCB = NULL, const char* partitionLabel = "spiffs");
t_httpUpdate_return update(HTTPClient &httpClient, const String ¤tVersion = "", HTTPUpdateRequestCB requestCB = NULL);
t_httpUpdate_return updateSpiffs(HTTPClient &httpClient, const String ¤tVersion = "", HTTPUpdateRequestCB requestCB = NULL, const char* partitionLabel = "spiffs");
t_httpUpdate_return handleUpdate(HTTPClient &http, const String ¤tVersion, bool spiffs = false, HTTPUpdateRequestCB requestCB = NULL, const char* partitionLabel = NULL);
bool runUpdate(Stream &in, uint32_t size, String md5, int command = U_FLASH, const char* partitionLabel = NULL);
Related area
HTTPUpdate
Hardware specification
ESP32
Is your feature request related to a problem?
Yes. I can't update specific partition. I need to do a hack.
Describe the solution you'd like
Describe alternatives you've considered
Now I have to manually modify the partition label on every firmware change because the new one overwrites my changes
Additional context
-
I have checked existing list of Feature requests and the Contribution Guide