• 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

Send Data to Server And Receive Data from server

Q&A Forum › Category: ESP8266 › Send Data to Server And Receive Data from server
0 Vote Up Vote Down
mosaddeq billah asked 2 years ago

I watched  video where you explained how to send information to a server. I also saw other video where  showed how to send information from a server to a NodeMCU device. However, I’m looking for a tutorial that teaches both sending and receiving information. Could you assist me with this?Also note that, I dont want to use third party iot platform, rather i prefer php+mysql, django etc. And also i want to add multiple device and multiple users

Question Tags: #esp8266 #sending and receiving data
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
Can you tell me what tutorials are you referring to? So that I can better understand what you’re trying to achieve.
 
Regards,
Sara

0 Vote Up Vote Down
mosaddeq billah answered 2 years ago

Thanks a lot. I looked at 

  1. https://randomnerdtutorials.com/control-esp32-esp8266-gpios-from-anywhere/     
  2. https://randomnerdtutorials.com/visualize-esp32-esp8266-sensor-readings-from-anywhere/ 

In these two tutorial, one is sending information to server and other is receiving information from server.  However, I’m looking for a tutorial that teaches both sending and receiving information for multiple users and multiple devices. 

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

Hello Mosaddeq,

Unfortunately an external website can’t connect directly to an ESP32/ESP8266 with that approach…

With PHP and using an external hosting, the ESP32/ESP8266 is the only device that can make HTTP requests to the server to retrieve information, but it’s impossible to do it the other way around.

For two way communication, you might consider using MQTT

  • Run Your Cloud MQTT Mosquitto Broker (access from anywhere using Digital Ocean)
0 Vote Up Vote Down
Rui Santos Staff answered 2 years ago

Just to clarify my previous answer, it’s not possible to send data to the ESP32 from an external server… In that example 1. https://randomnerdtutorials.com/control-esp32-esp8266-gpios-from-anywhere/  The ESP is requesting data to the server every few seconds to monitor for changes.
At the moment I don’t have any guide that has both features in a single project, but it’s definitely possible to merge the 2 examples…

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.