Update the examples for the classed based model

This commit is contained in:
Scott Baker 2019-03-19 14:33:57 -07:00
parent 71824b8e9e
commit 122a8c7637
3 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ void setup() {
init_wifi(ssid, password, host);
// Defaults to 8080 and "/webota"
//init_webota(80, "/update");
//webota.init(80, "/update");
}
// the loop function runs over and over again forever
@ -24,9 +24,9 @@ void loop() {
int md = 1000;
digitalWrite(LED_PIN, HIGH);
webota_delay(md);
webota.delay(md);
digitalWrite(LED_PIN, LOW);
webota_delay(md);
webota.delay(md);
handle_webota();
webota.handle();
}

View File

@ -10,7 +10,7 @@ void setup() {
init_wifi(ssid, password, host);
// Defaults to 8080 and "/webota"
//init_webota(80, "/update");
//webota.init(80, "/update");
}
int offset = 0;
@ -33,5 +33,5 @@ void loop() {
if (offset >= len) { offset = 0; }
handle_webota();
webota.handle();
}

View File

@ -39,7 +39,7 @@ void setup() {
init_wifi(ssid, password, host);
// Defaults to 8080 and "/webota"
//init_webota(80, "/update");
//webota.init(80, "/update");
}
void loop() {
@ -72,5 +72,5 @@ void loop() {
i++;
handle_webota();
webota.handle();
}