From 3dc042be420a6ad45a309cf89def1e6ce04e64f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sat, 25 Feb 2017 23:02:15 +0100 Subject: [PATCH] Report data from CT and DS18B20 to the web interface even if no MQTT connection --- code/espurna/ds18b20.ino | 2 -- code/espurna/emon.ino | 2 -- 2 files changed, 4 deletions(-) diff --git a/code/espurna/ds18b20.ino b/code/espurna/ds18b20.ino index 197a8180..3f7031f0 100644 --- a/code/espurna/ds18b20.ino +++ b/code/espurna/ds18b20.ino @@ -33,8 +33,6 @@ void dsSetup() { void dsLoop() { - if (!mqttConnected()) return; - // Check if we should read new data static unsigned long last_update = 0; if ((millis() - last_update > DS_UPDATE_INTERVAL) || (last_update == 0)) { diff --git a/code/espurna/emon.ino b/code/espurna/emon.ino index bebd70f0..445feeb1 100644 --- a/code/espurna/emon.ino +++ b/code/espurna/emon.ino @@ -110,8 +110,6 @@ void powerMonitorLoop() { static double min = 0; static double sum = 0; - if (!mqttConnected()) return; - if (warmup) { warmup = false; emon.warmup();