Code APP3

Dependencies:   mbed EthernetInterface WebSocketClient mbed-rtos BufferedSerial

Fork of APP3_Lab by Jean-Philippe Fournier

Revision:
22:7edae38d0758
Parent:
17:8abdbfa6019c
Child:
23:c3f25b511448
--- a/xbee.cpp	Mon Oct 02 15:20:22 2017 +0000
+++ b/xbee.cpp	Mon Oct 02 16:02:27 2017 +0000
@@ -36,6 +36,23 @@
     return;
 }
 */
+
+bool addr_64_equal(zigbee_addr_64_t addr1, zigbee_addr_64_t addr2)
+{
+    if( addr1.addr_0 == addr2.addr_0 &&
+        addr1.addr_1 == addr2.addr_1 &&
+        addr1.addr_2 == addr2.addr_2 &&
+        addr1.addr_3 == addr2.addr_3 &&
+        addr1.addr_4 == addr2.addr_4 &&
+        addr1.addr_5 == addr2.addr_5 &&
+        addr1.addr_6 == addr2.addr_6 &&
+        addr1.addr_7 == addr2.addr_7)
+    {
+        return true;
+    }
+    return false;
+}
+
 void xbee_init()
 {
     // Setup a serial interrupt function to receive data