An example hot to register a network connection state change callback. Possible state changes are listed on the example.

Supported in Mbed OS version 5.8

Revision:
4:987d54985478
Parent:
3:a0e64683327b
Child:
6:c66df92cf71b
diff -r a0e64683327b -r 987d54985478 main.cpp
--- a/main.cpp	Mon Feb 26 11:07:16 2018 +0000
+++ b/main.cpp	Mon Feb 26 11:13:01 2018 +0000
@@ -38,6 +38,7 @@
     printf("Connecting...\n");
     eth.connect();
     
+    printf("Connecting started...\n");
     wait(10);
     
     printf("Disconnect\n");