• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 Web Server

Q&A Forum › Category: ESP32 › ESP32 Web Server
0 Vote Up Vote Down
Paul asked 6 years ago

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.

5 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

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.
Thanks!

0 Vote Up Vote Down
Paul answered 6 years ago

https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/WiFi_Web_Server_Outputs/WiFi_Web_Server_Outputs.ino

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

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
0 Vote Up Vote Down
Paul answered 6 years ago

It seem to be working OK now.
Thanks for your hep

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Thanks for letting me know! I’ll mark this thread as “resolved”.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.