Arduino to arduino communication using ESP WiFi Shield
Posted: Thu May 18, 2017 3:57 am
Hello, I'm quite new of communication between arduino.
I'm trying to make a communication between the arduino using the ESP WiFi Shield. The operation for example:
input is given to first arduino(server), then LED on, at the same time, the 2nd arduino (client) receive the input from server and light up another LED.
I have found a few examples but mostly use web as server. I came across this example which using TCP (here the link) https://docs.google.com/document/d/169x ... Te9ZA/edit
but there's a few part that I don't understand
for example:
if anyone can help me, much appreciated. Also if anyone know a better example, please let me know. Thank you so much
I'm trying to make a communication between the arduino using the ESP WiFi Shield. The operation for example:
input is given to first arduino(server), then LED on, at the same time, the 2nd arduino (client) receive the input from server and light up another LED.
I have found a few examples but mostly use web as server. I came across this example which using TCP (here the link) https://docs.google.com/document/d/169x ... Te9ZA/edit
but there's a few part that I don't understand
for example:
- CODE: SELECT_ALL_CODE
String i1 = "sendData(\"ipFromTheServer\", \"send.php?d=";
String i2 = i1+dataToSend;
String i3 = i2 +"\");";
wifi.println(i3);
if anyone can help me, much appreciated. Also if anyone know a better example, please let me know. Thank you so much