Skip to content

Commit

Permalink
Merge pull request #588 from blinker-iot/dev_3.0
Browse files Browse the repository at this point in the history
update codes, release verison 0.3.9
  • Loading branch information
i3water authored Feb 15, 2022
2 parents e1c5aad + 10a518d commit c43bb88
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "git",
"url": "https://github.com/blinker-iot/blinker-library.git"
},
"version": "0.3.0.3.80211227",
"version": "0.3.9",
"homepage": "https://diandeng.tech/home",
"export": {
"exclude": [
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Blinker
version=0.3.0.3.80211227
version=0.3.9
author=i3water
maintainer=i3wawter
sentence=Build a easy way for your IoT project.
Expand Down
5 changes: 5 additions & 0 deletions src/Adapters/BlinkerMQTT.h
Original file line number Diff line number Diff line change
Expand Up @@ -2183,6 +2183,11 @@ int BlinkerMQTT::connectServer() {
String _userID = root[BLINKER_CMD_DETAIL][BLINKER_CMD_DEVICENAME];
String _userName = root[BLINKER_CMD_DETAIL][BLINKER_CMD_IOTID];
String _key = root[BLINKER_CMD_DETAIL][BLINKER_CMD_IOTTOKEN];

if (_key == _userName) {
_key = STRING_find_string(payload, "iotToken", "\"", 4);
}

String _productInfo = root[BLINKER_CMD_DETAIL][BLINKER_CMD_PRODUCTKEY];
String _broker = root[BLINKER_CMD_DETAIL][BLINKER_CMD_BROKER];
String _uuid = root[BLINKER_CMD_DETAIL][BLINKER_CMD_UUID];
Expand Down
5 changes: 5 additions & 0 deletions src/Adapters/BlinkerPROESP.h
Original file line number Diff line number Diff line change
Expand Up @@ -2466,6 +2466,11 @@ int BlinkerPROESP::connectServer() {
String _userID = root[BLINKER_CMD_DETAIL][BLINKER_CMD_DEVICENAME];
String _userName = root[BLINKER_CMD_DETAIL][BLINKER_CMD_IOTID];
String _key = root[BLINKER_CMD_DETAIL][BLINKER_CMD_IOTTOKEN];

if (_key == _userName) {
_key = STRING_find_string(payload, "iotToken", "\"", 4);
}

String _productInfo = root[BLINKER_CMD_DETAIL][BLINKER_CMD_PRODUCTKEY];
String _broker = root[BLINKER_CMD_DETAIL][BLINKER_CMD_BROKER];
String _uuid = root[BLINKER_CMD_DETAIL][BLINKER_CMD_UUID];
Expand Down
2 changes: 1 addition & 1 deletion src/Blinker/BlinkerConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// #include "Blinker/BlinkerUtility.h"
#include "../Server/BlinkerServer.h"

#define BLINKER_VERSION "0.3.0.3.80211227"
#define BLINKER_VERSION "0.3.9"

#define BLINKER_CONNECT_TIMEOUT_MS 10000UL

Expand Down
12 changes: 6 additions & 6 deletions src/Functions/BlinkerDuerOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit c43bb88

Please sign in to comment.