@@ -1560,9 +1560,9 @@ class BlinkerApi : public BlinkerProtocol
1560
1560
1561
1561
url_iot = BLINKER_F("/api/v1/storage/ts ");
1562
1562
#ifndef BLINKER_WITHOUT_SSL
1563
- http.begin("https://storage.diandeng.tech" , url_iot);
1563
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
1564
1564
#else
1565
- http.begin("http://storage.diandeng.tech" , url_iot);
1565
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
1566
1566
#endif
1567
1567
// http.addHeader(conType, application);
1568
1568
httpCode = http.POST(msg, conType, application);
@@ -1579,9 +1579,9 @@ class BlinkerApi : public BlinkerProtocol
1579
1579
1580
1580
url_iot = BLINKER_F("/api/v1/storage/text ");
1581
1581
#ifndef BLINKER_WITHOUT_SSL
1582
- http.begin("https://storage.diandeng.tech" , url_iot);
1582
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
1583
1583
#else
1584
- http.begin("http://storage.diandeng.tech" , url_iot);
1584
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
1585
1585
#endif
1586
1586
// http.addHeader(conType, application);
1587
1587
httpCode = http.POST(msg, conType, application);
@@ -2227,29 +2227,29 @@ class BlinkerApi : public BlinkerProtocol
2227
2227
case BLINKER_CMD_TIME_SLOT_DATA_NUMBER :
2228
2228
url_iot = BLINKER_F("/api/v1/storage/ts");
2229
2229
#ifndef BLINKER_WITHOUT_SSL
2230
- http.begin("https://storage.diandeng.tech" , url_iot);
2230
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
2231
2231
#else
2232
- http.begin("http://storage.diandeng.tech" , url_iot);
2232
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
2233
2233
#endif
2234
2234
// http.addHeader(conType, application);
2235
2235
httpCode = http.POST(msg, conType, application);
2236
2236
break;
2237
2237
case BLINKER_CMD_TEXT_DATA_NUMBER :
2238
2238
url_iot = BLINKER_F("/api/v1/storage/text");
2239
2239
#ifndef BLINKER_WITHOUT_SSL
2240
- http.begin("https://storage.diandeng.tech" , url_iot);
2240
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
2241
2241
#else
2242
- http.begin("http://storage.diandeng.tech" , url_iot);
2242
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
2243
2243
#endif
2244
2244
// http.addHeader(conType, application);
2245
2245
httpCode = http.POST(msg, conType, application);
2246
2246
break;
2247
2247
case BLINKER_CMD_JSON_DATA_NUMBER :
2248
2248
url_iot = BLINKER_F("/api/v1/storage/object");
2249
2249
#ifndef BLINKER_WITHOUT_SSL
2250
- http.begin("https://storage.diandeng.tech" , url_iot);
2250
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
2251
2251
#else
2252
- http.begin("http://storage.diandeng.tech" , url_iot);
2252
+ http.begin(BLINKER_STORAGE_HTTP , url_iot);
2253
2253
#endif
2254
2254
// http.addHeader(conType, application);
2255
2255
httpCode = http.POST(msg, conType, application);
@@ -12182,15 +12182,17 @@ char * BlinkerApi::widgetName_tab(uint8_t num)
12182
12182
break;
12183
12183
case BLINKER_CMD_TIME_SLOT_DATA_NUMBER :
12184
12184
// url_iot = host;
12185
- // #ifndef BLINKER_WITHOUT_SSL
12186
- // url_iot = BLINKER_F("https://storage.diandeng.tech/api/v1/storage/ts");
12187
- // #else
12188
- // url_iot = BLINKER_F("http://storage.diandeng.tech/api/v1/storage/ts");
12189
- // #endif
12185
+ #ifndef BLINKER_WITHOUT_SSL
12186
+ url_iot = BLINKER_STORAGE_HTTP;
12187
+ url_iot += BLINKER_F("/api/v1/storage/ts");
12188
+ #else
12189
+ url_iot = BLINKER_STORAGE_HTTP;
12190
+ url_iot += BLINKER_F("/api/v1/storage/ts");
12191
+ #endif
12190
12192
12191
12193
12192
- url_iot = host;
12193
- url_iot += BLINKER_F("/api/v1/user/device/cloud_storage/object");
12194
+ // url_iot = host;
12195
+ // url_iot += BLINKER_F("/api/v1/user/device/cloud_storage/object");
12194
12196
12195
12197
#if defined(ESP8266)
12196
12198
#ifndef BLINKER_WITHOUT_SSL
@@ -12208,9 +12210,11 @@ char * BlinkerApi::widgetName_tab(uint8_t num)
12208
12210
case BLINKER_CMD_TEXT_DATA_NUMBER :
12209
12211
// url_iot = host;
12210
12212
#ifndef BLINKER_WITHOUT_SSL
12211
- url_iot = BLINKER_F("https://storage.diandeng.tech/api/v1/storage/tt");
12213
+ url_iot = BLINKER_STORAGE_HTTP;
12214
+ url_iot += BLINKER_F("/api/v1/storage/tt");
12212
12215
#else
12213
- url_iot = BLINKER_F("http://storage.diandeng.tech/api/v1/storage/tt");
12216
+ url_iot = BLINKER_STORAGE_HTTP;
12217
+ url_iot += BLINKER_F("/api/v1/storage/tt");
12214
12218
#endif
12215
12219
12216
12220
#if defined(ESP8266)
@@ -12229,9 +12233,11 @@ char * BlinkerApi::widgetName_tab(uint8_t num)
12229
12233
case BLINKER_CMD_JSON_DATA_NUMBER :
12230
12234
// url_iot = host;
12231
12235
#ifndef BLINKER_WITHOUT_SSL
12232
- url_iot = BLINKER_F("https://storage.diandeng.tech/api/v1/storage/ot");
12236
+ url_iot = BLINKER_STORAGE_HTTP;
12237
+ url_iot += BLINKER_F("/api/v1/storage/ot");
12233
12238
#else
12234
- url_iot = BLINKER_F("http://storage.diandeng.tech/api/v1/storage/ot");
12239
+ url_iot = BLINKER_STORAGE_HTTP;
12240
+ url_iot += BLINKER_F("/api/v1/storage/ot");
12235
12241
#endif
12236
12242
12237
12243
#if defined(ESP8266)
0 commit comments