Skip to content

Commit

Permalink
Release v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Roger committed Apr 17, 2016
1 parent 0a2486b commit 4a6aaa2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/DoorSensor/DoorSensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void loopHandler() {
Serial.print("Door is now: ");
Serial.println(doorValue ? "open" : "close");

if (Homie.setNodeProperty(doorNode, "open", String(doorValue ? "true" : "false"), true)) {
if (Homie.setNodeProperty(doorNode, "open", doorValue ? "true" : "false", true)) {
lastDoorValue = doorValue;
} else {
Serial.println("Sending failed");
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "git",
"url": "https://github.com/marvinroger/homie-esp8266.git"
},
"version": "1.3.0",
"version": "1.4.0",
"frameworks": "arduino",
"platforms": "espressif",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion src/Homie/Boot/BootConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void BootConfig::_onConfigRequest() {
}

StaticJsonBuffer<MAX_JSON_CONFIG_ARDUINOJSON_BUFFER_SIZE> parseJsonBuffer;
JsonObject& parsedJson = parseJsonBuffer.parseObject((char*)this->_http.arg("plain").c_str());
JsonObject& parsedJson = parseJsonBuffer.parseObject(this->_http.arg("plain"));
if (!parsedJson.success()) {
Logger.logln(F("✖ Invalid or too big JSON"));
this->_http.send(400, FPSTR(PROGMEM_CONFIG_APPLICATION_JSON), FPSTR(PROGMEM_CONFIG_JSON_FAILURE));
Expand Down

0 comments on commit 4a6aaa2

Please sign in to comment.