From 125725cacad5584648321fe3d72cc112423a0593 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 26 May 2021 23:58:42 +0200 Subject: [PATCH] TIC send as object in telemetry frame --- tasmota/xnrg_15_teleinfo.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasmota/xnrg_15_teleinfo.ino b/tasmota/xnrg_15_teleinfo.ino index ca94ca1b0..cc2b0f584 100755 --- a/tasmota/xnrg_15_teleinfo.ino +++ b/tasmota/xnrg_15_teleinfo.ino @@ -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 }