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
Diff: main.cpp
- Revision:
- 2:a553ea23194b
- Parent:
- 1:953e5affd67a
- Child:
- 3:8fea787c2199
diff -r 953e5affd67a -r a553ea23194b main.cpp --- a/main.cpp Tue Mar 25 20:23:40 2014 +0000 +++ b/main.cpp Tue Mar 25 22:19:34 2014 +0000 @@ -58,7 +58,7 @@ XBeeDevice::XBeeDeviceReturn_t status; /* This is the frame we're going to transmit */ - XBeeApiTxFrameEx frame( &xbeeDevice ); + XBeeApiTxFrame frame( &xbeeDevice ); /* Get API mode 2 set up - this is a pre-requisit to using other XBeeApi functions. This step may not be needed in the case that the XBee has already been configured