mirror of
https://github.com/scottchiefbaker/ESP-WebOTA.git
synced 2024-08-30 18:12:33 +00:00
Update example to use webota_delay()
This commit is contained in:
parent
3ab61ce2bd
commit
ef15214132
@ -20,12 +20,12 @@ void setup() {
|
|||||||
|
|
||||||
// the loop function runs over and over again forever
|
// the loop function runs over and over again forever
|
||||||
void loop() {
|
void loop() {
|
||||||
int md = 200;
|
int md = 1000;
|
||||||
|
|
||||||
digitalWrite(LED_PIN, HIGH);
|
digitalWrite(LED_PIN, HIGH);
|
||||||
delay(md);
|
webota_delay(md);
|
||||||
digitalWrite(LED_PIN, LOW);
|
digitalWrite(LED_PIN, LOW);
|
||||||
delay(md);
|
webota_delay(md);
|
||||||
|
|
||||||
OTAServer.handleClient();
|
OTAServer.handleClient();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user