Post topics, source code that relate to the Arduino Platform

User avatar
By paks
#41720 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
User avatar
By Andrew Grande
#41751 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