• 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

Build Web Servers with the ESP32 and ESP8266

Q&A Forum › Category: ESP8266 › Build Web Servers with the ESP32 and ESP8266
0 Vote Up Vote Down
halojanos asked 1 year ago

Hi
I am going through module 3. The going is a little tough. I have an issue with the WebServer-Control Multiple Outputs project. I hope you can point me  to the problem and how to fix it. This issue is present only when I use the ESP8266 board. After the program loaded and I log on to the web page, everything works kind of. This is what happens:

  1. GPIO 2 slider is off  and it shows  “State: ON” and the  LED is  ON.
  2. When slider is moved to on  the LED turns off and it shows  “State: OFF”. Just the opposite what it should be.
  3. On GPIO 12, for example, when slider is off it shows “State: ON” and LED is off.
  4. When slider is ON it shows “State: OFF” and the LED is ON.

This the fourth book that I am going through. The teaching is excellent but the subject is tough.
Thanks in advance for your help.
Stefan

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
I’ve just tested the code to check if there was some update that might have messed up the logic. Everything is working as expected on my side.
 
Did you change anything in the code?
 
What ESP8266 board model do you have?
Do you know if some of your GPIOs work with inverted logic?
 
Regards,
Sara

0 Vote Up Vote Down
halojanos answered 1 year ago

Hi Sara,
Thanks for the prompt response. Found ,in a way, the problem. I used Arduino IDE and everything works. Found out that platformIO has a lot of bugs at least in my installation. So now I will just use the Arduino IDE.
Thanks again.

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Ok.
I’ll mark this issue as resolved.
If you need further help with VS Code, you just need to open a new question in our forum.
Regards,
Sara

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.