FF1705: peer to peer examples

Dependencies:   Dot-Examples libxDot-mbed5 ISL29011

Fork of Dot-Examples by MultiTech

Files at this revision

API Documentation at this revision

Comitter:
Mike Fiore
Date:
Wed Oct 19 11:53:17 2016 -0500
Parent:
15:364df461110f
Child:
17:d4f82e16de5f
Commit message:
print mbed-os library version in examples

Changed in this revision

examples/src/auto_ota_example.cpp Show annotated file Show diff for this revision Revisions of this file
examples/src/class_c_example.cpp Show annotated file Show diff for this revision Revisions of this file
examples/src/manual_example.cpp Show annotated file Show diff for this revision Revisions of this file
examples/src/ota_example.cpp Show annotated file Show diff for this revision Revisions of this file
examples/src/peer_to_peer_example.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/examples/src/auto_ota_example.cpp	Tue Oct 11 16:33:45 2016 -0500
+++ b/examples/src/auto_ota_example.cpp	Wed Oct 19 11:53:17 2016 -0500
@@ -49,6 +49,8 @@
     dot->setEvents(&events);
 
     if (!dot->getStandbyFlag()) {
+        logInfo("mbed-os library version: %d", MBED_LIBRARY_VERSION);
+
         // start from a well-known state
         logInfo("defaulting Dot configuration");
         dot->resetConfig();
--- a/examples/src/class_c_example.cpp	Tue Oct 11 16:33:45 2016 -0500
+++ b/examples/src/class_c_example.cpp	Wed Oct 19 11:53:17 2016 -0500
@@ -39,6 +39,8 @@
     
     dot = mDot::getInstance();
 
+    logInfo("mbed-os library version: %d", MBED_LIBRARY_VERSION);
+
     // start from a well-known state
     logInfo("defaulting Dot configuration");
     dot->resetConfig();
--- a/examples/src/manual_example.cpp	Tue Oct 11 16:33:45 2016 -0500
+++ b/examples/src/manual_example.cpp	Wed Oct 19 11:53:17 2016 -0500
@@ -46,6 +46,8 @@
     dot->setEvents(&events);
 
     if (!dot->getStandbyFlag()) {
+        logInfo("mbed-os library version: %d", MBED_LIBRARY_VERSION);
+
         // start from a well-known state
         logInfo("defaulting Dot configuration");
         dot->resetConfig();
--- a/examples/src/ota_example.cpp	Tue Oct 11 16:33:45 2016 -0500
+++ b/examples/src/ota_example.cpp	Wed Oct 19 11:53:17 2016 -0500
@@ -49,6 +49,8 @@
     dot->setEvents(&events);
 
     if (!dot->getStandbyFlag()) {
+        logInfo("mbed-os library version: %d", MBED_LIBRARY_VERSION);
+
         // start from a well-known state
         logInfo("defaulting Dot configuration");
         dot->resetConfig();
--- a/examples/src/peer_to_peer_example.cpp	Tue Oct 11 16:33:45 2016 -0500
+++ b/examples/src/peer_to_peer_example.cpp	Wed Oct 19 11:53:17 2016 -0500
@@ -36,6 +36,8 @@
     
     dot = mDot::getInstance();
 
+    logInfo("mbed-os library version: %d", MBED_LIBRARY_VERSION);
+
     // start from a well-known state
     logInfo("defaulting Dot configuration");
     dot->resetConfig();