Browse Source

Send Vcc, LoadAvg and Ssid to influxdb (#1714)

rules-rpn
Luciano Andrade 5 years ago
committed by Max Prokhorov
parent
commit
55b9f2a52f
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      code/espurna/utils.ino

+ 9
- 0
code/espurna/utils.ino View File

@ -331,6 +331,15 @@ void heartbeat() {
if (hb_cfg & Heartbeat::Rssi)
idbSend(MQTT_TOPIC_RSSI, String(WiFi.RSSI()).c_str());
if ((hb_cfg & Heartbeat::Vcc) && (ADC_MODE_VALUE == ADC_VCC))
idbSend(MQTT_TOPIC_VCC, String(ESP.getVcc()).c_str());
if (hb_cfg & Heartbeat::Loadavg)
idbSend(MQTT_TOPIC_LOADAVG, String(systemLoadAverage()).c_str());
if (hb_cfg & Heartbeat::Ssid)
idbSend(MQTT_TOPIC_SSID, WiFi.SSID().c_str());
#endif
}


Loading…
Cancel
Save