-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTp error.. #105
Comments
hi, Thanks for your report, please add more precision e.g. what happened before the error, also provide source of the "other" firmware. setting arduino debug level to
|
Hi @tobozo .. thanks for your super help... now it works... this is the final example working... #include <esp32fota.h> // fota pulls WiFi library
// Change to your WiFi credentials
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);
}
Just 2 questions...
1- Now it is working with https without checking the certificate... which is the next step to add the check of the certificate..
2-Can you post again the lin kto the repo with the the fota example for ethernet ?? Thanks a lot @tobozo
|
Hi @tobozo and @vortigont
I am trying the new branch chrisjoyce911/esp32FOTA@^0.2.3
but still have this issue ..
and I don't understand why it seems open a local ip
This is the sketch
fota.json
Thanks a lot for your help
The text was updated successfully, but these errors were encountered: