Added more decimals in data.json

This commit is contained in:
Gunnar Skjold 2021-10-23 10:04:52 +02:00
parent c670549dea
commit 768645fc0a
2 changed files with 5 additions and 5 deletions

View File

@ -695,7 +695,7 @@ void AmsWebServer::dataJson() {
mqttStatus = 3;
}
char json[280];
char json[284];
snprintf_P(json, sizeof(json), DATA_JSON,
maxPwr == 0 ? meterState->isThreePhase() ? 20000 : 10000 : maxPwr,
meterConfig->productionCapacity,

View File

@ -10,13 +10,13 @@
"ec" : %.1f,
"ric" : %.1f,
"rec" : %.1f,
"u1" : %.1f,
"u2" : %.1f,
"u3" : %.1f,
"u1" : %.2f,
"u2" : %.2f,
"u3" : %.2f,
"i1" : %.2f,
"i2" : %.2f,
"i3" : %.2f,
"v" : %.2f,
"v" : %.3f,
"r" : %d,
"t" : %.1f,
"u" : %lu,