From 122a8c7637ab72fbe616424f2744168cefdc235b Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Tue, 19 Mar 2019 14:33:57 -0700 Subject: [PATCH] Update the examples for the classed based model --- examples/Blink/Blink.ino | 8 ++++---- examples/Chargen/Chargen.ino | 4 ++-- examples/Primes/Primes.ino | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/Blink/Blink.ino b/examples/Blink/Blink.ino index e9b6efb..9d7dbb6 100644 --- a/examples/Blink/Blink.ino +++ b/examples/Blink/Blink.ino @@ -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(); } diff --git a/examples/Chargen/Chargen.ino b/examples/Chargen/Chargen.ino index b561b9a..19860b9 100644 --- a/examples/Chargen/Chargen.ino +++ b/examples/Chargen/Chargen.ino @@ -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(); } diff --git a/examples/Primes/Primes.ino b/examples/Primes/Primes.ino index 9ecc84b..ecc2ab5 100644 --- a/examples/Primes/Primes.ino +++ b/examples/Primes/Primes.ino @@ -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(); }