Sending and receiving data
Now that the XBee connectivity is covered, it is time to actually exchange some data wirelessly between your Arduinos. In the previous chapter, you have already seen the API frames involved in transmitting and receiving data through the network. In this section, you will let the Arduino use those API frames to exchange a simple Hello, world!
message again. For this, the sender will use the XBee module that you configured as a router, while the receiver will use the coordinator XBee.
Sending data
Remember that sending a message involves a few different API frames:
- The sender sends a ZigBee Transmit Request API frame to the XBee module, containing the destination address and the message.
- The receiver receives a ZigBee Receive ...
Get Building Wireless Sensor Networks Using Arduino now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.