I got the ESP32 Web Server working, Turns led’s on and off via WIfi. But when I push the on button the led goes off , and when I push the off button the led goes on. It says “GPIO 26 – State off” above the ON button and “GPIO 25 – off” above the other ON Button. It seem like the buttons are mislabeled.
Can you tell me the exact sketch that you’re running, so I can double-check?
Just send me the link to the GitHub code that you’re using from my course.
I’ve just double-checked that example and the code is working as expected. Here’s how it appears in my web browser:
- GPIO 26 is ON
- It displays the message in the web page: “GPIO 26 – State on”
- It displays the “OFF” button in the web page