Merge pull request #14000 from barbudor/ezoo2_sensor_message

Fix EZOO2 sensor message format
This commit is contained in:
Theo Arends 2021-12-11 12:20:18 +01:00 committed by GitHub
commit 0c032c5608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ struct EZOO2 : public EZOStruct {
dtostrfd(O2, 2, str); dtostrfd(O2, 2, str);
if (json) { if (json) {
ResponseAppend_P(PSTR(",\"%s\":{\"" D_JSON_O2 "\":%d}" ), name, str); ResponseAppend_P(PSTR(",\"%s\":{\"" D_JSON_O2 "\":%s}" ), name, str);
#ifdef USE_WEBSERVER #ifdef USE_WEBSERVER
}else { }else {
WSContentSend_PD(HTTP_SNS_O2, name, str); WSContentSend_PD(HTTP_SNS_O2, name, str);