mbed Open Thread example with nRF52-DK (nRF52840 SoC).

Revision:
120:e8a17278fb1a
Parent:
116:b2f0131722a0
--- a/main.cpp	Fri Jan 04 23:49:48 2019 +0000
+++ b/main.cpp	Fri Jan 04 23:55:03 2019 +0000
@@ -19,9 +19,6 @@
 #include "mbed-trace/mbed_trace.h"
 #include "mesh_nvm.h"
 
-#if MBED_CONF_APP_ENABLE_LED_CONTROL_EXAMPLE
-#include "mesh_led_control_example.h"
-#endif
 
 void trace_printer(const char* str) {
     printf("%s\n", str);
@@ -33,13 +30,9 @@
 
 void thread_eui64_trace()
 {
-#define LOWPAN 1
-#define THREAD 2
-#if MBED_CONF_NSAPI_DEFAULT_MESH_TYPE == THREAD && (MBED_VERSION >= MBED_ENCODE_VERSION(5,10,0))
    uint8_t eui64[8] = {0};
    static_cast<ThreadInterface*>(mesh)->device_eui64_get(eui64);
    printf("Device EUI64 address = %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", eui64[0], eui64[1], eui64[2], eui64[3], eui64[4], eui64[5], eui64[6], eui64[7]);
-#endif
 }
 
 void serial_out_mutex_wait()
@@ -67,13 +60,6 @@
     printf("Mbed OS version: %d.%d.%d\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
 #endif
 
-#if MBED_CONF_APP_ENABLE_LED_CONTROL_EXAMPLE
-    if (MBED_CONF_APP_BUTTON != NC && MBED_CONF_APP_LED != NC) {
-        start_blinking();
-    } else {
-        printf("pins not configured. Skipping the LED control.\n");
-    }
-#endif
     mesh = MeshInterface::get_default_instance();
     if (!mesh) {
         printf("Error! MeshInterface not found!\n");
@@ -93,12 +79,4 @@
         ThisThread::sleep_for(500);
 
     printf("Connected. IP = %s\n", mesh->get_ip_address());
-
-#if MBED_CONF_APP_ENABLE_LED_CONTROL_EXAMPLE
-    // Network found, start socket example
-    if (MBED_CONF_APP_BUTTON != NC && MBED_CONF_APP_LED != NC) {
-        cancel_blinking();
-        start_mesh_led_control_example((NetworkInterface *)mesh);
-    }
-#endif
 }