Example for XBeeAPI; a little more involved than XBeeApiSimpleBroadcastExample with report on failure to set up the XBee and on the transmit status of the message.

Dependencies:   XBeeApi XBeeApiSimpleBroadcastExample mbed

Fork of XBeeApiSimpleBroadcastExample by John Bailey

Revision:
3:8fea787c2199
Parent:
2:a553ea23194b
Child:
4:4c6644fd040b
--- a/main.cpp	Tue Mar 25 22:19:34 2014 +0000
+++ b/main.cpp	Fri Mar 28 22:31:04 2014 +0000
@@ -65,7 +65,7 @@
        to use Mode 2 and the setting has been stored in NV */
     status = xbeeDevice.setUpApi();
 
-    if( status != XBeeDevice::XBEEDEVICE_OK )
+    if( status == XBeeDevice::XBEEDEVICE_OK )
     {
         /* Set the 16-bit source address of this XBee */
         atIf.setSourceAddress( myNetworkAddress );