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.
main.cpp
00001 #include "mbed.h" 00002 #include "XBee.h" 00003 00004 XBee xbee(p13, p14); 00005 00006 int main() { 00007 uint8_t Cmd[] = {'D', '4'}; 00008 uint8_t Low[] = {0x05}; 00009 uint8_t Val[] = {0x04}; 00010 XBeeAddress64 remoteAddress(0x0013A200, 0x403A8C82); 00011 RemoteAtCommandRequest remoteAtRequest; 00012 00013 wait(1); 00014 xbee.begin(115200); 00015 00016 remoteAtRequest = RemoteAtCommandRequest(remoteAddress, Cmd, Low, sizeof(Low)); 00017 remoteAtRequest.setApplyChanges(true); 00018 00019 remoteAtRequest.setCommandValue(Val); 00020 remoteAtRequest.setCommandValueLength(sizeof(Val)); 00021 xbee.send(remoteAtRequest); 00022 }
Generated on Mon Jul 18 2022 15:57:36 by
1.7.2