Hi community,
I am trying to update the fw of my esp32 using a fota lib…
I have prepared this example here…
onst char *firmware_name = "esp32-fota-http";
const bool check_signature = false;
const bool disable_security = true;
#define FOTA_URL "https://systelfota.000webhostapp.com/fota.json"
int firmware_version_major = 2;
int firmware_version_minor = 0;
int firmware_version_patch = 0;
esp32FOTA FOTA; // empty constructor
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());
}
void setup(void)
{
Serial.begin(115200);
{
auto cfg = FOTA.getConfig();
cfg.name = firmware_name;
cfg.manifest_url = FOTA_URL;
cfg.sem = SemverClass(firmware_version_major, firmware_version_minor, firmware_version_patch);
cfg.check_sig = check_signature;
cfg.unsafe = disable_security;
// cfg.root_ca = MyRootCA;
// cfg.pub_key = MyRSAKey;
FOTA.setConfig(cfg);
}
setup_wifi();
}
void loop(void)
{
bool updatedNeeded = FOTA.execHTTPcheck();
if (updatedNeeded)
{
FOTA.execOTA();
}
delay(2000);
But i got …
[E][WiFiClient.cpp:258] connect(): socket error on fd 55, errno: 113, “Software caused connection abort”
[E][WiFiClient.cpp:258] connect(): socket error on fd 57, errno: 113, “Software caused connection abort”
[E][WiFiClient.cpp:258] connect(): socket error on fd 59, errno: 113, “Software caused connection abort”
[E][WiFiClient.cpp:258] connect(): socket error on fd 61, errno: 113, “Software caused connection abort”
[E][WiFiClient.cpp:258] connect(): socket error on fd 63, errno: 113, “Software caused connection abort”
[E][WiFiClient.cpp:258] connect(): socket error on fd 55, errno: 113, “Software caused connection abort”
any ideas?
THanks