-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
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);
}
Metadata
Metadata
Assignees
Labels
No labels