• 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

Control ESP32 and ESP8266 GPIOs from Anywhere in the World

Q&A Forum › Category: ESP32 › Control ESP32 and ESP8266 GPIOs from Anywhere in the World
0 Vote Up Vote Down
Brian Hugo asked 5 years ago

Good afternoon,

I’m implementing the above project. I’m using an ESP32 TTGO board and have LED’s on GPIO2 and GPIO15. When I toggle the LEDs from ON to OFF via the front panel, I can see the states change almost immediately in the database.

Now if I enter the URL nanotronics.co.za/esp-outputs-action.php?action=outputs_state&board=2 I get the following

JSON object = {"15":"1","2":1}
GPIO: "15" - SET to: "1"
GPIO: "2" - SET to: "1"

only after several minutes do I get

JSON object = {"15":"0","2":0
GPIO: "15" - SET to: "0"
GPIO: "2" - SET to: "0"

Do you know why it takes so long to reflect the state change even though I can see the change immediately in the database

Control ESP32 and ESP8266 GPIOs from Anywhere in the World

Question Tags: Brian
1 Answers
0 Vote Up Vote Down
Brian Hugo answered 5 years ago

I just found the problem. It was hosting caching

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.