Browse Source

Influxdb: don't queue any data while connecting

master
Max Prokhorov 5 years ago
committed by GitHub
parent
commit
96a13f39c3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      code/espurna/influxdb.ino

+ 1
- 2
code/espurna/influxdb.ino View File

@ -150,9 +150,8 @@ void _idbBrokerStatus(const String& topic, unsigned char id, unsigned int value)
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
bool idbSend(const char * topic, const char * payload) { bool idbSend(const char * topic, const char * payload) {
if (!_idb_enabled) return false; if (!_idb_enabled) return false;
if (_idb_connected) return false;
if (_idb_connecting || _idb_connected) return false;
_idb_values[topic] = payload; _idb_values[topic] = payload;
_idb_flush = true; _idb_flush = true;


Loading…
Cancel
Save