Hiroshi Yamaguchi / Mbed 2 deprecated XBeeExamples

Dependencies:   mbed XBee mbed-rtos

Committer:
yamaguch
Date:
Tue Jan 29 13:58:19 2013 +0000
Revision:
10:0cb575e57f9a
added end device examples

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yamaguch 10:0cb575e57f9a 1 #include "XBee.h"
yamaguch 10:0cb575e57f9a 2
yamaguch 10:0cb575e57f9a 3 void xbee_enddev02() {
yamaguch 10:0cb575e57f9a 4 XBee xbee(p9, p10);
yamaguch 10:0cb575e57f9a 5 xbee.baud(115200);
yamaguch 10:0cb575e57f9a 6 xbee.init();
yamaguch 10:0cb575e57f9a 7
yamaguch 10:0cb575e57f9a 8 xbee.sendCommand("SM", 5);
yamaguch 10:0cb575e57f9a 9 xbee.sendCommand("WR");
yamaguch 10:0cb575e57f9a 10 xbee.sendCommand("SM");
yamaguch 10:0cb575e57f9a 11 xbee.sendCommand("SP");
yamaguch 10:0cb575e57f9a 12 xbee.sendCommand("SN");
yamaguch 10:0cb575e57f9a 13 xbee.sendCommand("ST");
yamaguch 10:0cb575e57f9a 14
yamaguch 10:0cb575e57f9a 15 while (xbee.receive())
yamaguch 10:0cb575e57f9a 16 xbee.dump();
yamaguch 10:0cb575e57f9a 17 }