Browse Source

Report data from CT and DS18B20 to the web interface even if no MQTT connection

fastled
Xose Pérez 7 years ago
parent
commit
3dc042be42
2 changed files with 0 additions and 4 deletions
  1. +0
    -2
      code/espurna/ds18b20.ino
  2. +0
    -2
      code/espurna/emon.ino

+ 0
- 2
code/espurna/ds18b20.ino View File

@ -33,8 +33,6 @@ void dsSetup() {
void dsLoop() { void dsLoop() {
if (!mqttConnected()) return;
// Check if we should read new data // Check if we should read new data
static unsigned long last_update = 0; static unsigned long last_update = 0;
if ((millis() - last_update > DS_UPDATE_INTERVAL) || (last_update == 0)) { if ((millis() - last_update > DS_UPDATE_INTERVAL) || (last_update == 0)) {


+ 0
- 2
code/espurna/emon.ino View File

@ -110,8 +110,6 @@ void powerMonitorLoop() {
static double min = 0; static double min = 0;
static double sum = 0; static double sum = 0;
if (!mqttConnected()) return;
if (warmup) { if (warmup) {
warmup = false; warmup = false;
emon.warmup(); emon.warmup();


Loading…
Cancel
Save