• 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/8266 WEB SERVER WITH WEB SOCKET

Q&A Forum › Category: ESP32 › ESP32/8266 WEB SERVER WITH WEB SOCKET
0 Vote Up Vote Down
daniele gotti asked 5 years ago

Dear all, I’m writing to kindly suggest to create a web server (maybe using web socket) that permit to verify the state of the outputs when a new clients are connected.  Actually using a normal web server you don’t have the way to know the real state of the outputs. I know that your project “Control ESP32 and ESP8266 GPIOs from Anywhere in the World” it works as I asked, but it use a cloud service.
Many thanks in advance for your attention
Daniele

5 Answers
1 Vote Up Vote Down
Best Answer
daniele gotti answered 5 years ago

Hi Steph,
Thank you very much for your help. 
Daniele

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Daniele.

I’m not really sure what you mean.

Do you want the current output state always updated on the web server?

We published a new tutorial today that keeps the output state updated. In the example the output can be controlled with a physical pushbutton and with a web server. But it also works with multiple clients.

When you open the web server it always shows the last state even if you access it from a different client.

Here’s the link to the project: https://randomnerdtutorials.com/esp32-esp8266-web-server-physical-button/

I hope this helps.

Regards,
Sara

0 Vote Up Vote Down
daniele gotti answered 5 years ago

Hi Sara,

Thank you very much indeed for your quick reply ! Even considering that my question is not completely clear, the project that you have published is exactly what I mean.

I will try to add one more GPI in order to control two outputs.

Thanks again and best regards

Daniele

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Great!
You can delete the physical button part from the code if you don’t need it. It will work well without that part.
Thanks for following our work.
Regards,
Sara

0 Vote Up Vote Down
Steph answered 5 years ago

Hi Daniele,

You can take a look at the tutorial I recently wrote. I think you’ll find the answers to your questions:

ESP32 Remote Control with WebSocket

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.