From ecdedc0fe04a6ba672a6303b997a34bb20913258 Mon Sep 17 00:00:00 2001 From: sun <276572447@qq.com> Date: Thu, 13 Jan 2022 21:28:50 +0800 Subject: [PATCH] =?UTF-8?q?duerOS=E6=B8=A9=E5=BA=A6=E5=8F=8D=E9=A6=88JSON?= =?UTF-8?q?=E6=9B=B4=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit duerOS湿度反馈{“temp”:["",temp]}更正{“temp”:"temp"} --- src/Functions/BlinkerDuerOS.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Functions/BlinkerDuerOS.h b/src/Functions/BlinkerDuerOS.h index 59d443bb..ccf44e6b 100644 --- a/src/Functions/BlinkerDuerOS.h +++ b/src/Functions/BlinkerDuerOS.h @@ -265,9 +265,9 @@ class BLINKERDUEROS { String payload = BLINKER_F("\""); payload += STRING_format(BLINKER_CMD_TEMP); - payload += BLINKER_F("\":[\"\","); + payload += BLINKER_F("\":\""); payload += STRING_format(_temp); - payload += BLINKER_F("]"); + payload += BLINKER_F("\""); // Blinker.DuerOSPrint(payload); @@ -285,9 +285,9 @@ class BLINKERDUEROS { String payload = BLINKER_F("\""); payload += STRING_format(BLINKER_CMD_TEMP); - payload += BLINKER_F("\":[\"\","); + payload += BLINKER_F("\":\""); payload += STRING_format(_temp); - payload += BLINKER_F("]"); + payload += BLINKER_F("\""); // Blinker.DuerOSPrint(payload); @@ -305,9 +305,9 @@ class BLINKERDUEROS { String payload = BLINKER_F("\""); payload += STRING_format(BLINKER_CMD_TEMP); - payload += BLINKER_F("\":[\"\","); + payload += BLINKER_F("\":\""); payload += STRING_format(_temp); - payload += BLINKER_F("]"); + payload += BLINKER_F("\""); // Blinker.DuerOSPrint(payload);