Version del programa usado para la Expo IOT 2018 - Strada Hotel

Dependencies:   DHT HX711 libmDot-mbed5 ISL29011

Fork of Dot-Examples by Rajnish Narayan

Revision:
2:ffac7b141b72
Parent:
1:c4915e00d2ce
Child:
4:93579eb88fcd
diff -r c4915e00d2ce -r ffac7b141b72 examples/src/dot_util.cpp
--- a/examples/src/dot_util.cpp	Thu Oct 06 14:49:35 2016 +0000
+++ b/examples/src/dot_util.cpp	Thu Oct 06 16:44:19 2016 +0000
@@ -7,7 +7,7 @@
     logInfo("---------------------");
     logInfo("\tdevice ID/EUI:           %s", mts::Text::bin2hexString(dot->getDeviceId()).c_str());
     logInfo("\tfrequency band:          %s", mDot::FrequencyBandStr(dot->getFrequencyBand()).c_str());
-    if (dot->getFrequencySubBand() != mDot::EU868) {
+    if (dot->getFrequencySubBand() != mDot::FB_EU868) {
         logInfo("\tfrequency sub band:      %u", dot->getFrequencySubBand());
     }
     logInfo("\tpublic network:          %s", dot->getPublicNetwork() == true ? "on" : "off");
@@ -116,7 +116,7 @@
         dot->setWakePin(WAKE);    
     }
 
-    logInfo("%ssleeping until rising edge on %s pin", deepsleep ? "deep" : "", deepsleep ? "WAKE" : mDot::pinName2Str(dot->getWakePin()).c_str());
+    logInfo("%ssleeping until interrupt on %s pin", deepsleep ? "deep" : "", deepsleep ? "WAKE" : mDot::pinName2Str(dot->getWakePin()).c_str());
 #else
     if (deepsleep) {
         // for mDot, XBEE_DIO7 pin is the only pin that can wake the processor from deepsleep
@@ -127,7 +127,7 @@
         dot->setWakePin(XBEE_DIO7);    
     }
 
-    logInfo("%ssleeping until rising edge on %s pin", deepsleep ? "deep" : "", deepsleep ? "DIO7" : mDot::pinName2Str(dot->getWakePin()).c_str());
+    logInfo("%ssleeping until interrupt on %s pin", deepsleep ? "deep" : "", deepsleep ? "DIO7" : mDot::pinName2Str(dot->getWakePin()).c_str());
 #endif
 
     logInfo("application will %s after waking up", deepsleep ? "execute from beginning" : "resume");
@@ -155,7 +155,7 @@
         dot->setWakePin(WAKE);    
     }
 
-    logInfo("%ssleeping %lus or until rising edge on %s pin", deepsleep ? "deep" : "", delay_s, deepsleep ? "WAKE" : mDot::pinName2Str(dot->getWakePin()).c_str());
+    logInfo("%ssleeping %lus or until interrupt on %s pin", deepsleep ? "deep" : "", delay_s, deepsleep ? "WAKE" : mDot::pinName2Str(dot->getWakePin()).c_str());
 #else
     if (deepsleep) {
         // for mDot, XBEE_DIO7 pin is the only pin that can wake the processor from deepsleep
@@ -166,7 +166,7 @@
         dot->setWakePin(XBEE_DIO7);    
     }
 
-    logInfo("%ssleeping %lus or until rising edge on %s pin", deepsleep ? "deep" : "", delay_s, deepsleep ? "DIO7" : mDot::pinName2Str(dot->getWakePin()).c_str());
+    logInfo("%ssleeping %lus or until interrupt on %s pin", deepsleep ? "deep" : "", delay_s, deepsleep ? "DIO7" : mDot::pinName2Str(dot->getWakePin()).c_str());
 #endif
 
     logInfo("application will %s after waking up", deepsleep ? "execute from beginning" : "resume");
@@ -181,8 +181,8 @@
 
     ret = dot->send(data);
     if (ret != mDot::MDOT_OK) {
-        logError("failed to send light data to gateway [%d][%s]", ret, mDot::getReturnCodeString(ret).c_str());
+        logError("failed to send data to gateway [%d][%s]", ret, mDot::getReturnCodeString(ret).c_str());
     } else {
-        logInfo("successfully sent light data to gateway");
+        logInfo("successfully sent data to gateway");
     }
 }