Browse Source

Also add RSSI metric

pull/808/head
Tobias Wolf 2 years ago
parent
commit
e2f8b7bea3
No known key found for this signature in database GPG Key ID: D7BF0C39BB42A6E1
  1. 4
      src/web/web.h

4
src/web/web.h

@ -689,6 +689,10 @@ class Web {
snprintf(topic,sizeof(topic),"ahoy_solar_uptime{devicename=\"%s\"} %u\n", mConfig->sys.deviceName, mApp->getUptime());
metrics += String(type) + String(topic);
snprintf(type,sizeof(type),"# TYPE ahoy_solar_wifi_rssi_db gauge\n");
snprintf(topic,sizeof(topic),"ahoy_solar_wifi_rssi_db{devicename=\"%s\"} %d\n", mConfig->sys.deviceName, WiFi.RSSI());
metrics += String(type) + String(topic);
// NRF Statistics
stat = mApp->getStatistics();
metrics += radioStatistic(F("rx_success"), stat->rxSuccess);

Loading…
Cancel
Save