![](/media/cache/profiles/764f9642ebf04622c53ebc366a68c0a7.50x50_q85.jpg)
xbee test program 1
main.cpp
- Committer:
- takashiyamanoue
- Date:
- 2012-07-21
- Revision:
- 0:fb7cf60c8229
File content as of revision 0:fb7cf60c8229:
#include "mbed.h" #include "XBee.h" XBee xbee(p13, p14); int main() { uint8_t Cmd[] = {'D', '4'}; uint8_t Low[] = {0x05}; uint8_t Val[] = {0x04}; XBeeAddress64 remoteAddress(0x0013A200, 0x403A8C82); RemoteAtCommandRequest remoteAtRequest; wait(1); xbee.begin(115200); remoteAtRequest = RemoteAtCommandRequest(remoteAddress, Cmd, Low, sizeof(Low)); remoteAtRequest.setApplyChanges(true); remoteAtRequest.setCommandValue(Val); remoteAtRequest.setCommandValueLength(sizeof(Val)); xbee.send(remoteAtRequest); }