Skip to content

Commit

Permalink
Merge pull request #62 from blinker-iot/dev
Browse files Browse the repository at this point in the history
update version & fix MQTT pub bug
  • Loading branch information
i3water authored Jun 20, 2018
2 parents 5fad205 + bfa30e3 commit 3f2ab83
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 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.1.3",
"version": "0.1.4",
"homepage": "https://blinker.app/",
"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.1.3
version=0.1.4
author=i3water
maintainer=i3wawter
sentence=Build a easy way for your project to communicate with smartphone, work with smartphone app Blinker.
Expand Down
6 changes: 3 additions & 3 deletions src/Adapters/BlinkerMQTT.h
Original file line number Diff line number Diff line change
Expand Up @@ -671,11 +671,11 @@ void BlinkerMQTT::subscribe() {

void BlinkerMQTT::print(String data) {
if (*isHandle) {
bool state = STRING_contais_string(s_data, BLINKER_CMD_NOTICE);
bool state = STRING_contais_string(data, BLINKER_CMD_NOTICE);

if (!state) {
state = (STRING_contais_string(s_data, BLINKER_CMD_STATE)
&& STRING_contais_string(s_data, BLINKER_CMD_CONNECTED));
state = (STRING_contais_string(data, BLINKER_CMD_STATE)
&& STRING_contais_string(data, BLINKER_CMD_CONNECTED));
}

if (!state) {
Expand Down
10 changes: 10 additions & 0 deletions src/Blinker.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
#error This code is intended to run on the ESP8266/ESP32 platform! Please check your Tools->Board setting.
#endif

#elif defined(BLINKER_PRO)

#if defined(ESP8266)
#include <BlinkerSimpleESP8266_PRO.h>
#elif defined(ESP32)
#include <BlinkerSimpleESP32_PRO.h>
#else
#error This code is intended to run on the ESP8266/ESP32 platform! Please check your Tools->Board setting.
#endif

#endif

#endif
2 changes: 1 addition & 1 deletion src/Blinker/BlinkerConfig.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef BlinkerConfig_H
#define BlinkerConfig_H

#define BLINKER_VERSION "0.1.3"
#define BLINKER_VERSION "0.1.4"

#define BLINKER_CONNECT_TIMEOUT_MS 10000UL

Expand Down

0 comments on commit 3f2ab83

Please sign in to comment.