Digi International Inc. / Mbed 2 deprecated XBeeZB_dio_adc

Dependencies:   XBeeLib mbed

Revision:
7:bd1400c44126
Parent:
6:d1b362ab7d60
--- a/main.cpp	Mon May 18 13:18:28 2015 +0200
+++ b/main.cpp	Mon Jun 01 19:01:01 2015 +0200
@@ -17,10 +17,10 @@
 using namespace DigiLog;
 #endif
 
-// TODO Replace with the MSB of the remote module's 64-bit address (SH parameter)
 #define REMOTE_NODE_ADDR64_MSB  ((uint32_t)0x0013A200)
-// TODO Replace with the LSB of the remote module's 64-bit address (SL parameter)
-#define REMOTE_NODE_ADDR64_LSB  ((uint32_t)0x40D2B03E)
+
+#error "Replace next define with the LSB of the remote module's 64-bit address (SL parameter)"
+#define REMOTE_NODE_ADDR64_LSB  ((uint32_t)0x01234567)
 
 #define REMOTE_NODE_ADDR64      UINT64(REMOTE_NODE_ADDR64_MSB, REMOTE_NODE_ADDR64_LSB)
 
@@ -86,19 +86,19 @@
         if (!ioSample.is_valid()) {
             log_serial->printf("get_iosample failed, ADC and Digital Input reads will be invalid\r\n");
         }
-        /* Read DIO3_AD3 value */
+        /* Read DIO3_AD3 digital value */
         DioVal dio3_val;
 
         radioStatus = ioSample.get_dio(XBeeZB::DIO3_AD3, &dio3_val);
         MBED_ASSERT(radioStatus == Success);
         log_serial->printf("DIO3 value = %d\r\n", dio3_val);
 
-        /* Toggle XBIB board DS4 led */
+        /* Toggle LED associated to DIO4 */
         static bool led_on = false;
         if (!led_on)
             radioStatus = xbee.set_dio(remoteDevice, XBeeZB::DIO4, Low);
         else
-            radioStatus = xbee.set_dio(remoteDevice, XBeeZB::DIO4, High); 
+            radioStatus = xbee.set_dio(remoteDevice, XBeeZB::DIO4, High);
         MBED_ASSERT(radioStatus == Success);
         led_on = !led_on;
 
@@ -116,7 +116,7 @@
 #endif
 
         log_serial->printf("\r\n");
-        
+
         wait(5);
     }