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: examples/xbee_enddev04.cpp
- Revision:
- 10:0cb575e57f9a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/xbee_enddev04.cpp Tue Jan 29 13:58:19 2013 +0000
@@ -0,0 +1,18 @@
+#include "XBee.h"
+
+void xbee_enddev04() {
+ XBee xbee(p9, p10);
+ xbee.baud(115200);
+
+ if (xbee.init()) {
+ xbee.sendCommand("NI");
+ xbee.sendCommand("SM");
+ xbee.sendCommand("SP");
+ xbee.sendCommand("ST");
+
+ while (xbee.receive())
+ xbee.dump();
+ } else {
+ printf("XBee initialization failed\n");
+ }
+}
\ No newline at end of file