esp32FOTA: [E][HTTPClient.cpp:251] beginInternal(): failed to parse protocol
Hi… I created a web hosting account here…
https://systelfota.000webhostapp.com/
I am trying to update the fw after I have created the json file and uploaded with the .bin…
Running the example with https but not certificate I get
[E][HTTPClient.cpp:251] beginInternal(): failed to parse protocol
Can you tell me the meaning of this error ?
Thanks
#include <esp32fota.h>
#include <WiFi.h>
// Change to your WiFi credentials
const char *ssid = "";
const char *password = "";
// esp32fota esp32fota("<Type of Firme for this device>", <this version>, <validate signature>);
esp32FOTA esp32FOTA("esp32-fota-http", 1, false, true);
void setup_wifi()
{
delay(10);
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println(WiFi.localIP());
}
/**
* @brief Function to execute the setup generated by the arduino framework
* @param None
* @retval None
*/
void setup(void)
{
esp32FOTA.setManifestURL("https://systelfota.000webhostapp.com/fota.json");
Serial.begin(115200);
setup_wifi();
}
/**
* @brief Function to execute in loop generated by the arduino framework
* @param None
* @retval None
*/
void loop(void)
{
bool updatedNeeded = esp32FOTA.execHTTPcheck();
if (updatedNeeded)
{
esp32FOTA.execOTA();
}
delay(2000);
}
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17
Commits related to this issue
- store manifest url locally, fixes #99 — committed to chrisjoyce911/esp32FOTA by tobozo 2 years ago
I suggest you build more trust with yourself and stop relying on external assistance to disentangle local problems. If you managed to get this far then you already have the skills to troubleshoot that, it’s just a matter of not giving up 😃
@simogaspa84 your config looks good, can you try this sketch?