Skip to content

Commit

Permalink
Merge pull request #37 from athombv/development
Browse files Browse the repository at this point in the history
setCapabilityValue boolean fix & constant warning
  • Loading branch information
renzenicolai committed Jan 5, 2018
2 parents 5134d08 + 937efc2 commit 16fcfd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Homeyduino
version=1.0.1
version=1.0.2
author=Athom B.V.
maintainer=Athom B.V. <[email protected]>
sentence=Homeyduino allows you to connect your Arduino projects with Homey.
Expand Down
6 changes: 3 additions & 3 deletions src/Homey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ bool HomeyClass::trigger(const String& name, bool value)
return _emit(name.c_str(), CTYPE_BOOL, str, TYPE_TRIGGER);
}

bool HomeyClass::setCapabilityValue(const String& name, bool emit)
/*bool HomeyClass::setCapabilityValue(const String& name, bool emit)
{
if (!emit) {
_setValue(name.c_str(), CTYPE_NULL, "null", TYPE_CAPABILITY);
return true;
}
return _emit(name.c_str(), CTYPE_NULL, "null", TYPE_CAPABILITY);
}
}*/
bool HomeyClass::setCapabilityValue(const String& name, const char* value, bool emit)
{
if (!emit) {
Expand Down Expand Up @@ -682,7 +682,7 @@ void HomeyClass::streamWriteIndex(Stream* s) {
s->print('"');

//Version
s->print(",\"version\":\""HOMEYDUINO_VERSION"\"");
s->print(",\"version\":\"" HOMEYDUINO_VERSION "\"");

//Type field
s->print(",\"type\":\"");
Expand Down
2 changes: 1 addition & 1 deletion src/Homey.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/* -------------- DO NOT EDIT ANYTHING BELOW THIS LINE! -------------- */
/* (If you do you might break compatibility with the Homeyduino app...) */

#define HOMEYDUINO_VERSION "1.0.1"
#define HOMEYDUINO_VERSION "1.0.2"

#define ENDPOINT_MAX_SIZE 17 //16 + null
#define ARGUMENT_MAX_SIZE 65 //64 + null
Expand Down

0 comments on commit 16fcfd4

Please sign in to comment.