mirror of
https://github.com/scottchiefbaker/ESP-WebOTA.git
synced 2024-08-30 18:12:33 +00:00
Update the examples for the classed based model
This commit is contained in:
parent
71824b8e9e
commit
122a8c7637
@ -16,7 +16,7 @@ void setup() {
|
|||||||
init_wifi(ssid, password, host);
|
init_wifi(ssid, password, host);
|
||||||
|
|
||||||
// Defaults to 8080 and "/webota"
|
// Defaults to 8080 and "/webota"
|
||||||
//init_webota(80, "/update");
|
//webota.init(80, "/update");
|
||||||
}
|
}
|
||||||
|
|
||||||
// the loop function runs over and over again forever
|
// the loop function runs over and over again forever
|
||||||
@ -24,9 +24,9 @@ void loop() {
|
|||||||
int md = 1000;
|
int md = 1000;
|
||||||
|
|
||||||
digitalWrite(LED_PIN, HIGH);
|
digitalWrite(LED_PIN, HIGH);
|
||||||
webota_delay(md);
|
webota.delay(md);
|
||||||
digitalWrite(LED_PIN, LOW);
|
digitalWrite(LED_PIN, LOW);
|
||||||
webota_delay(md);
|
webota.delay(md);
|
||||||
|
|
||||||
handle_webota();
|
webota.handle();
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ void setup() {
|
|||||||
init_wifi(ssid, password, host);
|
init_wifi(ssid, password, host);
|
||||||
|
|
||||||
// Defaults to 8080 and "/webota"
|
// Defaults to 8080 and "/webota"
|
||||||
//init_webota(80, "/update");
|
//webota.init(80, "/update");
|
||||||
}
|
}
|
||||||
|
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
@ -33,5 +33,5 @@ void loop() {
|
|||||||
|
|
||||||
if (offset >= len) { offset = 0; }
|
if (offset >= len) { offset = 0; }
|
||||||
|
|
||||||
handle_webota();
|
webota.handle();
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ void setup() {
|
|||||||
init_wifi(ssid, password, host);
|
init_wifi(ssid, password, host);
|
||||||
|
|
||||||
// Defaults to 8080 and "/webota"
|
// Defaults to 8080 and "/webota"
|
||||||
//init_webota(80, "/update");
|
//webota.init(80, "/update");
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
@ -72,5 +72,5 @@ void loop() {
|
|||||||
|
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
handle_webota();
|
webota.handle();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user