@@ -496,7 +496,7 @@ class BlinkerApi : public BlinkerProtocol
496
496
#endif
497
497
498
498
#if defined(BLINKER_WIFI) || defined(BLINKER_MQTT) || \
499
- defined(BLINKER_PRO)
499
+ defined(BLINKER_PRO) || defined(BLINKER_PRO_ESP)
500
500
501
501
void attachRTData(char _name[], blinker_callback_t newFunction)
502
502
{
@@ -1073,7 +1073,7 @@ class BlinkerApi : public BlinkerProtocol
1073
1073
#endif
1074
1074
1075
1075
#if defined(BLINKER_WIFI) || defined(BLINKER_MQTT) || \
1076
- defined(BLINKER_PRO)
1076
+ defined(BLINKER_PRO) || defined(BLINKER_PRO_ESP)
1077
1077
char _RTDataKey[16];
1078
1078
blinker_callback_t _RTDataFunc = NULL;
1079
1079
Ticker _RTTicker;
@@ -1187,7 +1187,7 @@ class BlinkerApi : public BlinkerProtocol
1187
1187
blinker_callback_with_string_arg_t _dataGetFunc = NULL;
1188
1188
1189
1189
#if defined(BLINKER_WIFI) || defined(BLINKER_MQTT) || \
1190
- defined(BLINKER_PRO)
1190
+ defined(BLINKER_PRO) || defined(BLINKER_PRO_ESP)
1191
1191
void rtParse(const JsonObject& data);
1192
1192
#endif
1193
1193
@@ -4626,7 +4626,7 @@ void BlinkerApi::run()
4626
4626
}
4627
4627
4628
4628
#if defined(BLINKER_WIFI) || defined(BLINKER_MQTT) || \
4629
- defined(BLINKER_PRO)
4629
+ defined(BLINKER_PRO) || defined(BLINKER_PRO_ESP)
4630
4630
void BlinkerApi::rtParse(const JsonObject& data)
4631
4631
{
4632
4632
String get_key = data[_RTDataKey][BLINKER_CMD_GET];
@@ -4702,8 +4702,10 @@ void BlinkerApi::parse(char _data[], bool ex_data)
4702
4702
defined(BLINKER_WIFI_SUBDEVICE) || defined(BLINKE_HTTP)
4703
4703
shareParse(root);
4704
4704
autoManager(root);
4705
-
4705
+
4706
+ #if !defined(BLINKER_AT_MQTT)
4706
4707
rtParse(root);
4708
+ #endif
4707
4709
#if !defined(BLINKER_WIFI_SUBDEVICE)
4708
4710
otaParse(root);
4709
4711
numParse(root);
@@ -6348,6 +6350,8 @@ float BlinkerApi::gps(b_gps_t axis)
6348
6350
{
6349
6351
String data = BLINKER_F("{\"token\":\"");
6350
6352
data += BProto::token();
6353
+ data += BLINKER_F("\",\"device\":\"");
6354
+ data += BProto::deviceName();
6351
6355
data += BLINKER_F("\",\"data\":[[");
6352
6356
data += STRING_format(time());
6353
6357
data += BLINKER_F(",\"");
@@ -6831,7 +6835,7 @@ float BlinkerApi::gps(b_gps_t axis)
6831
6835
}
6832
6836
}
6833
6837
6834
-
6838
+ #if !defined(BLINKER_AT_MQTT)
6835
6839
void BlinkerApi::RTDataStorage(char _name[], int msg)
6836
6840
{
6837
6841
// String _msg = STRING_format(msg);
@@ -6912,6 +6916,7 @@ float BlinkerApi::gps(b_gps_t axis)
6912
6916
6913
6917
printObject(_RTDataKey, data);
6914
6918
}
6919
+ #endif
6915
6920
6916
6921
6917
6922
void BlinkerApi::timeSlotData(char _name[], int32_t _data)
@@ -12145,9 +12150,9 @@ char * BlinkerApi::widgetName_tab(uint8_t num)
12145
12150
case BLINKER_CMD_TEXT_DATA_NUMBER :
12146
12151
// url_iot = host;
12147
12152
#ifndef BLINKER_WITHOUT_SSL
12148
- url_iot = BLINKER_F("https://storage.diandeng.tech/api/v1/storage/text ");
12153
+ url_iot = BLINKER_F("https://storage.diandeng.tech/api/v1/storage/tt ");
12149
12154
#else
12150
- url_iot = BLINKER_F("http://storage.diandeng.tech/api/v1/storage/text ");
12155
+ url_iot = BLINKER_F("http://storage.diandeng.tech/api/v1/storage/tt ");
12151
12156
#endif
12152
12157
12153
12158
#if defined(ESP8266)
@@ -12166,9 +12171,9 @@ char * BlinkerApi::widgetName_tab(uint8_t num)
12166
12171
case BLINKER_CMD_JSON_DATA_NUMBER :
12167
12172
// url_iot = host;
12168
12173
#ifndef BLINKER_WITHOUT_SSL
12169
- url_iot = BLINKER_F("https://storage.diandeng.tech/api/v1/storage/object ");
12174
+ url_iot = BLINKER_F("https://storage.diandeng.tech/api/v1/storage/ot ");
12170
12175
#else
12171
- url_iot = BLINKER_F("http://storage.diandeng.tech/api/v1/storage/object ");
12176
+ url_iot = BLINKER_F("http://storage.diandeng.tech/api/v1/storage/ot ");
12172
12177
#endif
12173
12178
12174
12179
#if defined(ESP8266)
0 commit comments