I have an ESP32 and would like to use the ESP32-FOTA library. I first tried the example project, which can be found under "Sketch" in the README.md, however, I have a problem with the sketch.
The line bool updatedNeeded = esp32FOTA.execHTTPcheck();
raises the error:
[102237][E][HTTPClient.cpp:257] beginInternal(): failed to parse protocol
[102244][E][HTTPClient.cpp:257] beginInternal(): failed to parse protocol
I narrowed the problem down to this section in the esp32fota.cpp and replaced the line 666 with the following lines in order to debug it:
log_i("Before manifest url: %s", _cfg.manifest_url);
String useURL = _cfg.manifest_url;
log_i("After manifest url: <%s> <%s>", _cfg.manifest_url, useURL.c_str());
[ 5747][I][esp32FOTA.cpp:666] execHTTPcheck(): Before manifest url: https://my_site/OTA.json
[ 5750][I][esp32FOTA.cpp:668] execHTTPcheck(): After manifest url: <> <>
As you can see, the manifest_url and the useURL are both empty after the assignment.
Before this method is called, the _cfg.manifest_url variable is set by using the setManifestURL
method.
Does anyone know what's going on there?