Tuesday, 1 January 2019

communication - The appropriate code (Arduino) of Xbee


Can you tell me what is the appropriate code to send two variables (x,y) from an Xbee to another Xbee (series 1). I configured them and I can't write a code (because I don't know how to receive information and send them via Xbee and Arduino). Xbee is connected to the shield to Arduino UNO in 1st side, on the other side Xbee is connected to another shield to Arduino Mega.


I have configured Xbees yet and I tried to send commands from PC (Xbee) to Arduino (Xbee) and it worked.


Would someone help me by providing me with an example of sending variables (x,y) from UNO to MEGA (I use Arduino program which contain C/C++), or explain how to do it.




No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...