Echo example of class C devices receiving downlink and sending as next uplink

Dependencies:   libmDot-mbed5 ISL29011

Revision:
35:470b2b934241
Parent:
33:ff681aa203f3
Child:
36:18e6b0e367b6
--- a/examples/src/class_c_example_copy.cpp	Wed Feb 20 04:52:14 2019 +0000
+++ b/examples/src/class_c_example_copy.cpp	Tue Mar 05 13:34:21 2019 +0000
@@ -256,14 +256,21 @@
         if (!dot->getNetworkJoinStatus()) {
             join_network();
         }
+        
         send_string("start!",dot);
+        send_string(tx_str.c_str(),dot);
+        
     while (true) {
 
         // join network if not joined
         if (!dot->getNetworkJoinStatus()) {
             join_network();
+            send_string("start!",dot);
+            send_string(tx_str.c_str(),dot);
         }
 
+        
+        
         if (!Last_RX.empty()) {
 
             tx_str=Last_RX;
@@ -273,7 +280,7 @@
             send_string(tx_str.c_str(),dot);
             } 
             
-   
+            osDelay(100);
         }
 }