Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed XBee mbed-rtos
Diff: xbee9.cpp
- Revision:
- 6:d456c203adb6
- Parent:
- 5:d01cf03058f6
diff -r d01cf03058f6 -r d456c203adb6 xbee9.cpp --- a/xbee9.cpp Thu Apr 12 10:21:11 2012 +0000 +++ b/xbee9.cpp Thu Sep 20 11:17:17 2012 +0000 @@ -1,14 +1,14 @@ #include "XBee.h" void xbee9() { - XBee xbee(p9, p10); + XBee xbee(p9, p10, 2, true); xbee.baud(115200); xbee.init(); - XBeeAddress64 destination(0x0013A20040666193); + XBeeAddress64 destination(0x0013A20040606567); printf("Destination: %s\n", (char *) destination); + xbee.setDestination(destination); - xbee.setDestination(destination); xbee.printf("Comment allez-vous?\n"); printf("sent: Comment allez-vous?\n");