1

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?

  • 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)? – Majenko Aug 27 '15 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. – user12029 Aug 27 '15 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. – Majenko Aug 27 '15 at 11:07
  • Is there a library for socket for esp8266? – user12029 Aug 27 '15 at 11:18
  • No idea. I always program my ESPs directly in C. – Majenko Aug 27 '15 at 11:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.