libmDot0mbed5

Fork of libmDot-mbed5 by MultiTech

Revision:
3:5e805b567124
Parent:
2:6385bf37bfe7
Child:
13:5ac2300dc06a
--- a/README.txt	Wed Jun 24 17:16:30 2015 -0500
+++ b/README.txt	Wed Jun 24 17:21:14 2015 -0500
@@ -68,8 +68,9 @@
 
     // attempt to join the network
     printf("joining network\r\n");
-    if ((ret = dot->joinNetwork()) != mDot::MDOT_OK) {
+    while ((ret = dot->joinNetwork()) != mDot::MDOT_OK) {
         log_error(dot, "failed to join network", ret);
+        wait(2);
     }
 
     // format data for sending to the gateway