XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Revision:
0:837e6c48e90d
Child:
4:a0f1fba6c2fb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Options/RemoteCommandOptions.cpp	Thu Oct 22 12:28:26 2015 +0000
@@ -0,0 +1,34 @@
+#include "RemoteCommandOptions.h"
+
+
+RemoteCommandOptions::RemoteCommandOptions()
+    : TransmitOptions()
+{ }
+
+RemoteCommandOptions::RemoteCommandOptions(char option)
+    : TransmitOptions(option)
+{ }
+
+RemoteCommandOptions::RemoteCommandOptions(bool disable_retries_and_route_repair, bool apply_changes, bool enable_APS_encryption, bool use_extended_transmission_timeout)
+    : TransmitOptions(disable_retries_and_route_repair, enable_APS_encryption, use_extended_transmission_timeout)
+{
+    if (apply_changes)
+        value |= 0x02;
+}
+
+RemoteCommandOptions  RemoteCommandOptions::ApplyChanges =  RemoteCommandOptions (0x02);
+
+void RemoteCommandOptions::setApplyChanges(bool status)
+{
+    if (status)
+        value |= 0x02;
+    else
+        value &= 0xFD;
+}
+
+bool RemoteCommandOptions::getApplyChanges()
+{
+    if (value & 0x02 == 0x02)
+        return true;
+    else return false;
+}
\ No newline at end of file