Chat freely about anything...

User avatar
By guidingstructures
#12458 Hello All,

Is it possible to connect two ESP8266 chips together and start communicating with each other without being connected to the internet? I tried doing this and it keeps failing so I am not sure if it's supported or not?

On the Server ESP8266 I issued the commands:
When I do
I get 2 ip address:
the first is
the second one is not sure if that's an issue.

On the client ESP8266 I issued the commands:
AT+CWLAP="ESP1 SSID", "ESP1 PWD" //connects successfully
AT+CWLAP? //I get an ip address
but when I do the CIPSTART I get ERROR unlink.
Anyone know what the problem is? Has anyone tried to connect 2 esp8266 together and start communicating over tcp/ip

On the client
User avatar
By guidingstructures
LATEEF wrote:unfortunately I have the same problem and i'm tired of it ..
so please give us a solution :cry:


I actually managed to get it work after several days of configuration. I have my arduino acting as the server and my raspberry pi as the client. I successfully was able to communicate with each other through TCP/IP.

I used the following code as the client: ... Client.ino

and the following code as the server: ... Server.ino

I modified it to be used in my application my pi was running a Java Webs server, so I ported the C++ code to Java. But just look at the flow of it and it should work.
User avatar
By Vitoa
#12613 Hi, better to flash nodemcu firmware instead of using AT commands.
Simply set one module to AP mode and other to station, link them, than create some simple tcp server and client script for each module, here's example:

-- a tcp server
s:on("receive",function(s,c) print(c) end)

-- a tcp client
cu:on("receive",function(cu,c) print(c) end)

Or better u can go for coap, a simple protocol to comunication between devices
Makes easier to exchange data between modules ... and-server

Also some examples to see how easy is develop scripts on nodemcu frmware

Best regards,Vito