-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
Hi,
I have a website so i wanted to try this library with that website. But i got "There was no content in the response" from uart terminal.
http://elifcalika.com/esp32/esp32.json
http://elifcalika.com/esp32/esp32.bin
/**
esp32 firmware OTA
Purpose: Perform an OTA update from a bin located on a webserver (HTTP Only)
Setup:
Step 1 : Set your WiFi (ssid & password)
Step 2 : set esp32fota()
Upload:
Step 1 : Menu > Sketch > Export Compiled Library. The bin file will be saved in the sketch folder (Menu > Sketch > Show Sketch folder)
Step 2 : Upload it to your webserver
Step 3 : Update your firmware JSON file ( see firwmareupdate )
*/
#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>);
esp32FOTA esp32FOTA("esp32-fota-http", 1);
void setup()
{
esp32FOTA.checkURL = "http://elifcalika.com/esp32/esp32.json";
Serial.begin(115200);
setup_wifi();
}
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 loop()
{
delay(2000);
esp32FOTA.forceUpdate("http://elifcalika.com", 80, "/esp32/esp32.bin");
}
Metadata
Metadata
Assignees
Labels
No labels