required mdot library updated

Dependents:   mDot_SPI_slave

Fork of libmDot-mbed5 by MultiTech

Files at this revision

API Documentation at this revision

Comitter:
Mike Fiore
Date:
Wed Jun 24 17:21:14 2015 -0500
Parent:
2:6385bf37bfe7
Child:
4:94969e981dcc
Commit message:
example code try to join in while loop

Changed in this revision

README.txt Show annotated file Show diff for this revision Revisions of this file
--- 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