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
examples/xbee_enddev05.cpp
- Committer:
- yamaguch
- Date:
- 2013-03-21
- Revision:
- 14:50ee389d681f
- Parent:
- 10:0cb575e57f9a
File content as of revision 14:50ee389d681f:
#include "XBee.h" void xbee_enddev05() { XBee xbee(p9, p10); xbee.baud(115200); DigitalOut sleep_request(p11); sleep_request = false; // wake up 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"); } sleep_request = true; // sleep }