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.
Fork of TESTSENDIO by
Diff: main.cpp
- Revision:
- 0:8142893960b0
- Child:
- 1:d752dab97a81
diff -r 000000000000 -r 8142893960b0 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Feb 16 12:52:47 2018 +0000
@@ -0,0 +1,18 @@
+#include "XBeeLib.h"
+
+using namespace XBeeLib;
+
+int main()
+{
+ XBeeZB xbee = XBeeZB(RADIO_TX, RADIO_RX, RADIO_RESET);
+ RadioStatus radioStatus;
+
+
+ while(1){
+ RemoteXBeeZB remoteDevice = RemoteXBeeZB(0x0013A20041642F34);
+ radioStatus = xbee.set_pin_config(remoteDevice, XBeeZB::DIO4, DigitalOutHigh);
+ wait(0.01);
+ radioStatus = xbee.set_pin_config(remoteDevice, XBeeZB::DIO4, DigitalOutLow);
+ wait(0.01);
+}
+}
\ No newline at end of file
