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_enddev04.cpp
- Committer:
 - yamaguch
 - Date:
 - 2013-01-29
 - Revision:
 - 10:0cb575e57f9a
 
File content as of revision 10:0cb575e57f9a:
#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");
    }
}