The function does not work in ESP8266

Move the lines

at the very start of loop()

And show the resulting code

1 Like