Skip to content

Commit 4a902d2

Browse files
committed
Fix example
1 parent 4b4b41a commit 4a902d2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/arduino.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
#sketch-paths: |
3434
#- examples/HTTP/HTTP/HTTP.ino
3535
cli-compile-flags: |
36-
- --warnings="none"
36+
- --warnings="default"

examples/withDeviceID/withDeviceID.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const char *ssid = "";
2222
const char *password = "";
2323

2424
// esp32fota esp32fota("<Type of Firme for this device>", <this version>, <validate signature>);
25-
esp32FOTA FOTA("esp32-fota-http", 1, false);
25+
esp32FOTA esp32FOTA("esp32-fota-http", 1, false);
2626
const char* manifest_url = "http://server/fota/fota.json";
2727

2828
void setup()
@@ -54,10 +54,10 @@ void setup_wifi()
5454

5555
void loop()
5656
{
57-
bool updatedNeeded = FOTA.execHTTPcheck();
57+
bool updatedNeeded = esp32FOTA.execHTTPcheck();
5858
if (updatedNeeded)
5959
{
60-
FOTA.execOTA();
60+
esp32FOTA.execOTA();
6161
}
6262

6363
delay(2000);

src/.esp32FOTA.cpp.kate-swp

-154 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)