TIC send as object in telemetry frame

This commit is contained in:
Charles 2021-05-26 23:58:42 +02:00
parent 681ae7941d
commit 125725caca
1 changed files with 3 additions and 2 deletions

View File

@ -912,8 +912,9 @@ void TInfoShow(bool json)
ResponseAppend_P(PSTR(",\"Load\":%d"),(int) ((Energy.current[0]*100.0f) / isousc)); ResponseAppend_P(PSTR(",\"Load\":%d"),(int) ((Energy.current[0]*100.0f) / isousc));
} }
// add teleinfo full frame // add teleinfo TIC object
ResponseAppendTInfo(',', true); ResponseAppend_P(PSTR("},\"TIC\":{"));
ResponseAppendTInfo(' ', true);
#ifdef USE_WEBSERVER #ifdef USE_WEBSERVER
} }