Page 1 of 1

Arduino to arduino communication using ESP WiFi Shield

PostPosted: Thu May 18, 2017 3:57 am
by kzrn
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:
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

Re: Arduino to arduino communication using ESP WiFi Shield

PostPosted: Thu May 18, 2017 10:20 am
by bengchet
Hi,

The user who wrote the document you viewed uses ESP8266 with firmware different from Cytron WiFi Shield ESP8266. So the example in the document will not be working.

Please refer to this user manual and look for Getting Started section, to help you have a better understanding to use the shield.

The library mentioned in user manual provides several examples to help you get started.

Happy learning.

Re: Arduino to arduino communication using ESP WiFi Shield

PostPosted: Fri May 19, 2017 12:08 am
by kzrn
Hi. Thank you, I will try this first.

[EDITED]

Hi. So, I'm going to use this with blynk apps. Do I use the coding as in the example WiFiServer or I use the blynk server?
Thanks in advance

Re: Arduino to arduino communication using ESP WiFi Shield

PostPosted: Fri May 19, 2017 10:01 am
by bengchet
Hi,

If that is the case, Cytron WiFi library will not be used. Check this post for more info how to get started with Blynk with Cytron WiFi Shield.

Thanks.