-->
Page 1 of 1

ESP to ESP data send/receive code with arduino

PostPosted: Tue Feb 23, 2016 9:28 am
by paks
hello,
i am trying to communicate between two ESP module with ARDUINO but there is some issue with code..
If anybuddy hae code for Server abd Client to send/receive data please give me to solve issue

Re: ESP to ESP data send/receive code with arduino

PostPosted: Tue Feb 23, 2016 4:16 pm
by Andrew Grande
If your ESPs are already part of a larger network communicating e.g. over MQTT, then you can send messages between the two (or any number) of boards.

If you are trying to establish comms between 2 boards directly over a wire, I found that I2C/TWI worked better than serial rx/tx (the latter was unreliable and had garbage depending on which board you talk to and many other conditions and noise). You can use a standard Arduino's Wire library and examples for I2C (TWI, two-wire interface is just a different name due to trademarks): https://www.arduino.cc/en/Tutorial/LibraryExamples#wire