-
Couldn't load subscription status.
- Fork 96
Closed
Description
Hi @tobozo and @vortigont
I am trying the new branch chrisjoyce911/esp32FOTA@^0.2.3
but still have this issue ..
Opening item http://192.168.0.100/fota/esp32-fota-http-2.bin
and I don't understand why it seems open a local ip
**[E][ssl_client.cpp:98] start_ssl_client(): Connect to Server failed!
[E][WiFiClientSecure.cpp:133] connect(): start_ssl_client: -1
][esp32FOTA.cpp:460] execOTA(): HTTP Error**
This is the sketch
#include <esp32fota.h> // fota pulls WiFi library
const char *ssid =
const char *password =
const 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);
}
fota.json
{
"type": "esp32-fota-http",
"version": "2",
"url": "https://systelfota.000webhostapp.com/update.bin"
}Thanks a lot for your help
Metadata
Metadata
Assignees
Labels
No labels
