Skip to content

Commit 16fcfd4

Browse files
authored
Merge pull request #37 from athombv/development
setCapabilityValue boolean fix & constant warning
2 parents 5134d08 + 937efc2 commit 16fcfd4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Homeyduino
2-
version=1.0.1
2+
version=1.0.2
33
author=Athom B.V.
44
maintainer=Athom B.V. <[email protected]>
55
sentence=Homeyduino allows you to connect your Arduino projects with Homey.

src/Homey.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ bool HomeyClass::trigger(const String& name, bool value)
135135
return _emit(name.c_str(), CTYPE_BOOL, str, TYPE_TRIGGER);
136136
}
137137

138-
bool HomeyClass::setCapabilityValue(const String& name, bool emit)
138+
/*bool HomeyClass::setCapabilityValue(const String& name, bool emit)
139139
{
140140
if (!emit) {
141141
_setValue(name.c_str(), CTYPE_NULL, "null", TYPE_CAPABILITY);
142142
return true;
143143
}
144144
return _emit(name.c_str(), CTYPE_NULL, "null", TYPE_CAPABILITY);
145-
}
145+
}*/
146146
bool HomeyClass::setCapabilityValue(const String& name, const char* value, bool emit)
147147
{
148148
if (!emit) {
@@ -682,7 +682,7 @@ void HomeyClass::streamWriteIndex(Stream* s) {
682682
s->print('"');
683683

684684
//Version
685-
s->print(",\"version\":\""HOMEYDUINO_VERSION"\"");
685+
s->print(",\"version\":\"" HOMEYDUINO_VERSION "\"");
686686

687687
//Type field
688688
s->print(",\"type\":\"");

src/Homey.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/* -------------- DO NOT EDIT ANYTHING BELOW THIS LINE! -------------- */
1818
/* (If you do you might break compatibility with the Homeyduino app...) */
1919

20-
#define HOMEYDUINO_VERSION "1.0.1"
20+
#define HOMEYDUINO_VERSION "1.0.2"
2121

2222
#define ENDPOINT_MAX_SIZE 17 //16 + null
2323
#define ARGUMENT_MAX_SIZE 65 //64 + null

0 commit comments

Comments
 (0)