Merge pull request #12201 from hallard/teleinfo

Teleinfo, send as object TIC in telemetry frame
This commit is contained in:
Theo Arends 2021-05-27 09:50:08 +02:00 committed by GitHub
commit 108de09154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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));
}
// add teleinfo full frame
ResponseAppendTInfo(',', true);
// add teleinfo TIC object
ResponseAppend_P(PSTR("},\"TIC\":{"));
ResponseAppendTInfo(' ', true);
#ifdef USE_WEBSERVER
}