Tobias Wolf
2 years ago
No known key found for this signature in database
GPG Key ID: D7BF0C39BB42A6E1
1 changed files with
4 additions and
0 deletions
-
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); |
|
|
|