George Djabarov / Mbed OS mbed-os-example-mesh-minimal
Revision:
17:ee2610e1cb78
Parent:
16:22f072355a2c
Child:
19:f55c7983f8ab
diff -r 22f072355a2c -r ee2610e1cb78 main.cpp
--- a/main.cpp	Fri Sep 30 16:00:10 2016 +0100
+++ b/main.cpp	Sun Oct 02 13:45:09 2016 +0100
@@ -52,5 +52,8 @@
         return -1;
     }
 
+    while (NULL == mesh.get_ip_address())
+        Thread::wait(500);
+
     printf("connected. IP = %s\r\n", mesh.get_ip_address());
 }