diff --git a/src/web/web.h b/src/web/web.h index 7612b6b9..a7e455b3 100644 --- a/src/web/web.h +++ b/src/web/web.h @@ -686,7 +686,7 @@ class Web { metrics += String(type) + String(topic); snprintf(type,sizeof(type),"# TYPE ahoy_solar_uptime counter\n"); - snprintf(topic,sizeof(topic),"ahoy_solar_uptime{devicename=\"%s\"} %u\n", mApp->getUptime()); + snprintf(topic,sizeof(topic),"ahoy_solar_uptime{devicename=\"%s\"} %u\n", mConfig->sys.deviceName, mApp->getUptime()); metrics += String(type) + String(topic); // NRF Statistics