From 01b9bb80643230d7b09a96c5f4652f629363be9a Mon Sep 17 00:00:00 2001
From: i3water <121024123@qq.com>
Date: Mon, 22 Mar 2021 12:41:57 +0800
Subject: [PATCH] update codes, upgrade BLINKER AT support codes.

---
 src/Blinker/BlinkerApi.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Blinker/BlinkerApi.h b/src/Blinker/BlinkerApi.h
index c2133313..8fe3cb04 100644
--- a/src/Blinker/BlinkerApi.h
+++ b/src/Blinker/BlinkerApi.h
@@ -13956,7 +13956,7 @@ char * BlinkerApi::widgetName_tab(uint8_t num)
             reqData = BLINKER_F("+");
             reqData += BLINKER_CMD_WEATHER_AT;
             reqData += BLINKER_F(":");
-            reqData += STRING_format(weather(_slaverAT->getParam(0)));
+            reqData += STRING_format(weather(_slaverAT->getParam(0).toInt()));
 
             BProto::serialPrint(reqData);
             BProto::serialPrint(BLINKER_CMD_OK);
@@ -13967,7 +13967,7 @@ char * BlinkerApi::widgetName_tab(uint8_t num)
             reqData = BLINKER_F("+");
             reqData += BLINKER_CMD_AQI_AT;
             reqData += BLINKER_F(":");
-            reqData += STRING_format(aqi(_slaverAT->getParam(0)));
+            reqData += STRING_format(air(_slaverAT->getParam(0).toInt()));
 
             BProto::serialPrint(reqData);
             BProto::serialPrint(BLINKER_CMD_OK);