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– Majenko08/27/2015 11:03:07Commented 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.user12029– user1202908/27/2015 11:06:01Commented 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.Majenko– Majenko08/27/2015 11:07:25Commented Aug 27, 2015 at 11:07
-
Is there a library for socket for esp8266?user12029– user1202908/27/2015 11:18:00Commented Aug 27, 2015 at 11:18
-
No idea. I always program my ESPs directly in C.Majenko– Majenko08/27/2015 11:19:44Commented Aug 27, 2015 at 11:19
Add a comment
|