Arduino to arduino communication using ESP WiFi Shield

Bluetooth, XBee, RF......

Arduino to arduino communication using ESP WiFi Shield

Postby kzrn » 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:
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
kzrn
Greenhorn
 
Posts: 2
Joined: Thu Nov 17, 2016 4:47 am

Re: Arduino to arduino communication using ESP WiFi Shield

Postby bengchet » Thu May 18, 2017 10:20 am

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.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: Arduino to arduino communication using ESP WiFi Shield

Postby kzrn » Fri May 19, 2017 12:08 am

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
kzrn
Greenhorn
 
Posts: 2
Joined: Thu Nov 17, 2016 4:47 am

Re: Arduino to arduino communication using ESP WiFi Shield

Postby bengchet » Fri May 19, 2017 10:01 am

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.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am


Return to Wireless Device

Who is online

Users browsing this forum: No registered users and 12 guests

cron