2

Hi i would like to implement a sensor and control system for my home. Basically, i would like to send and receive data to my arduino uno using esp8266. I am able program the esp8266 using at commands to send http request to my server. How can i make my server send commands to my arduino uno using esp8266?

5
  • Do you want your "server" to send instructions direct to the esp8266 (esp8266 is a server), or do you want your esp8266 to connect to the server, send a request, then the server returns commands as a response (esp8266 is a client)? Commented Aug 27, 2015 at 11:03
  • Im not using the esp8266 alone, but using the esp8266 chip as a way for me to connect to the internet. I would like the esp8266 to be able to initiate a command to the server and be able to receive commands at any time without sending a command to get the response. Commented Aug 27, 2015 at 11:06
  • Then you need your esp to run as both a client and server. Open a listening socket and respond to the requests that come in. Commented Aug 27, 2015 at 11:07
  • Is there a library for socket for esp8266? Commented Aug 27, 2015 at 11:18
  • No idea. I always program my ESPs directly in C. Commented Aug 27, 2015 at 11:19

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.