diff --git a/NodeManager.cpp b/NodeManager.cpp index 7a9b56d51f412a642915e21a1e9343aedd4d0119..3c6be3056cb0a5e704d413fbd29ce089339a9763 100644 --- a/NodeManager.cpp +++ b/NodeManager.cpp @@ -441,7 +441,7 @@ void SensorThermistor::onLoop() { Serial.print(F(" V=")); Serial.print(adc); Serial.print(F(" T=")); - Serial.println(temperature); + Serial.print(temperature); Serial.print(F(" M=")); Serial.println(getControllerConfig().isMetric); #endif @@ -1891,6 +1891,8 @@ void NodeManager::_sleep() { if (_sleep_mode == WAIT) { // wait for the given interval wait(sleep_ms); + // send heartbeat to the controller + sendHeartbeat(); } else if (_sleep_mode == SLEEP) { // setup interrupt pins diff --git a/NodeManager.h b/NodeManager.h index d187a3478e80427e0c174fd98e7ea53e0863c3cb..d469543ddb6718a0646d37aed7b931eed5d8c799 100644 --- a/NodeManager.h +++ b/NodeManager.h @@ -8,7 +8,7 @@ #include <Arduino.h> // define NodeManager version -#define VERSION "1.4" +#define VERSION "1.5-dev1" /*********************************** Constants diff --git a/NodeManager.ino b/NodeManager.ino index a720850d17da48e6ab8b1d589b454f94a5c79f54..43a22e0d16cccfdcc6275e0de9b6cb74b50d8f1d 100644 --- a/NodeManager.ino +++ b/NodeManager.ino @@ -41,7 +41,7 @@ void before() { // presentation void presentation() { // Send the sketch version information to the gateway and Controller - sendSketchInfo(SKETCH_NAME,SKETCH_VERSION); + sendSketchInfo(SKETCH_NAME,SKETCH_VERSION); // call NodeManager presentation routine nodeManager.presentation();