Skip to content

Commit 3521473

Browse files
committed
update codes, add BLINKER_APCONFIG_V2
1 parent 82b2f39 commit 3521473

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"type": "git",
1414
"url": "https://github.com/blinker-iot/blinker-library.git"
1515
},
16-
"version": "0.3.80210704",
16+
"version": "0.3.80210803",
1717
"homepage": "https://diandeng.tech/home",
1818
"export": {
1919
"exclude": [

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Blinker
2-
version=0.3.80210704
2+
version=0.3.80210803
33
author=i3water
44
maintainer=i3wawter
55
sentence=Build a easy way for your IoT project.

src/Blinker.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525

2626
#elif defined(BLINKER_WIFI) || defined(BLINKER_MQTT)
2727

28+
#if defined(BLINKER_APCONFIG_V2)
29+
#define BLINKER_APCONFIG
30+
#define BLINKER_WITHOUT_WS_REG
31+
#endif
32+
2833
#if defined(BLINKER_WIFI)
2934
#undef BLINKER_WIFI
3035
#define BLINKER_MQTT
@@ -92,7 +97,12 @@
9297

9398
#elif defined(BLINKER_PRO_ESP) || defined(BLINKER_WIFI_AUTO)
9499

95-
#include "BlinkerAssistant.h"
100+
#include "BlinkerAssistant.h"
101+
102+
#if defined(BLINKER_APCONFIG_V2)
103+
#define BLINKER_APCONFIG
104+
#define BLINKER_WITHOUT_WS_REG
105+
#endif
96106

97107
#if defined(BLINKER_WIFI_AUTO)
98108
#define BLINKER_PRO_ESP

src/Blinker/BlinkerApi.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3242,6 +3242,10 @@ void BlinkerApi::run()
32423242
}
32433243
else
32443244
{
3245+
#if defined(BLINKER_WITHOUT_WS_REG)
3246+
_getRegister = true;
3247+
_isNew = true;
3248+
#endif
32453249
_proStatus = PRO_DEV_AUTHCHECK_FAIL;
32463250

32473251
BLINKER_LOG_ALL(BLINKER_F("not auth, conn deviceRegister"));
@@ -3476,6 +3480,10 @@ void BlinkerApi::run()
34763480
}
34773481
else
34783482
{
3483+
#if defined(BLINKER_WITHOUT_WS_REG)
3484+
_getRegister = true;
3485+
_isNew = true;
3486+
#endif
34793487
_mqttAutoStatue = AUTO_DEV_AUTHCHECK_FAIL;
34803488

34813489
BLINKER_LOG_ALL(BLINKER_F("not auth, conn deviceRegister"));

src/Blinker/BlinkerConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// #include "Blinker/BlinkerUtility.h"
66
#include "../Server/BlinkerServer.h"
77

8-
#define BLINKER_VERSION "0.3.80210704"
8+
#define BLINKER_VERSION "0.3.80210803"
99

1010
#define BLINKER_CONNECT_TIMEOUT_MS 10000UL
1111

0 commit comments

Comments
 (0)