Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.

Revision:
93:6c98c32f59e1
Parent:
82:3d9e3b7b3dcf
Child:
105:d9f83743ed4f
--- a/source/border_router_main.cpp	Mon Mar 04 09:02:42 2019 +0000
+++ b/source/border_router_main.cpp	Mon Mar 11 14:02:41 2019 +0000
@@ -167,7 +167,21 @@
     tr_info("Starting NanoStack Border Router...");
     tr_info("Build date: %s %s", __DATE__, __TIME__);
 #ifdef MBED_MAJOR_VERSION
-    tr_info("Mbed OS version: %d.%d.%d\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
+    tr_info("Mbed OS: %d", MBED_VERSION);
+#endif
+
+#if defined(MBED_SYS_STATS_ENABLED)
+    mbed_stats_sys_t stats;
+    mbed_stats_sys_get(&stats);
+
+    /* ARM = 1, GCC_ARM = 2, IAR = 3 */
+    tr_info("Compiler ID: %d", stats.compiler_id);
+    /* Compiler versions:
+       ARM: PVVbbbb (P = Major; VV = Minor; bbbb = build number)
+       GCC: VVRRPP  (VV = Version; RR = Revision; PP = Patch)
+       IAR: VRRRPPP (V = Version; RRR = Revision; PPP = Patch)
+    */
+    tr_info("Compiler Version: %d", stats.compiler_version);
 #endif
 }
 
@@ -175,7 +189,6 @@
  * \brief The entry point for this application.
  * Sets up the application and starts the border router module.
  */
-
 int main(int argc, char **argv)
 {
     ns_hal_init(app_stack_heap, APP_DEFINED_HEAP_SIZE, app_heap_error_handler, &heap_info);