We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c83c195 commit b0dada4Copy full SHA for b0dada4
CHANGELOG.md
@@ -34,8 +34,8 @@ Fix scene values type 'list' (Partially fix #266) #267
34
add support for SmartOS #272
35
36
# 1.6.0
37
-Fix broken Node 12 builds (v8 7.4.xxx)
38
-Initial support for OpenZWave 1.6
+Fix broken Node 12 builds (v8 7.4.xxx) #302
+Initial support for OpenZWave 1.6 #300
39
- implement exception macros
40
- [deprecate several legacy OpenZWave calls](https://github.com/OpenZWave/open-zwave/wiki/OpenZWave-1.6-Release-Notes#deprecated-featuresmethods)
41
Updated Raspbian Readme to fix bug when installing on Raspbian stretch #271
binding.gyp
@@ -56,7 +56,9 @@
56
"OPENZWAVE_DOC=<!@(node -p -e \"'<(OZW_DOC)'.length ? '<(OZW_DOC)' : '/usr/local/share/doc/openzwave'\")",
57
"OPENZWAVE_SECURITY=<!@(find <(OZW_INC) -name ZWSecurity.h | wc -l)",
58
"OPENZWAVE_EXCEPTIONS=<!@(find <(OZW_INC) -name OZWException.h | wc -l)",
59
- "OPENZWAVE_BITSET=<!@(find <(OZW_INC) -name ValueBitSet.h | wc -l)"
+ "OPENZWAVE_BITSET=<!@(find <(OZW_INC) -name ValueBitSet.h | wc -l)",
60
+ "OPENZWAVE_VALUETYPE_FROM_ENUM=<!@(ldconfig -p | grep 'libopenzwave.so ' | awk '{print $4}' | xargs nm -g --demangle |grep OpenZWave::Value::GetTypeNameFromEnum | wc -l)",
61
+ "OPENZWAVE_VALUETYPE_FROM_VALUEID=<!@(ldconfig -p | grep 'libopenzwave.so ' | awk '{print $4}' | xargs nm -g --demangle |grep OpenZWave::ValueID::GetTypeAsString | wc -l)",
62
],
63
"link_settings": {
64
"libraries": [
@@ -89,6 +91,8 @@
89
91
90
92
93
"OPENZWAVE_BITSET=<!@(find <(OZW_INC) -name ValueBitSet.h | wc -l)",
94
95
96
97
98
"libraries": ["-lopenzwave"]
@@ -121,7 +125,8 @@
121
125
"OPENZWAVE_ETC=<(OZW_HOME)/config",
122
126
"OPENZWAVE_SECURITY=1",
123
127
"OPENZWAVE_EXCEPTIONS=1",
124
- "OPENZWAVE_BITSET=1"
128
+ "OPENZWAVE_BITSET=1",
129
+ "OPENZWAVE_VALUETYPE_FROM_VALUEID=1"
130
131
'msvs_settings': {
132
'VCCLCompilerTool': {
src/utils.cc
@@ -252,8 +252,16 @@ namespace OZW {
252
AddStringProp(nodeobj, value_id, buffer.c_str());
253
AddIntegerProp(nodeobj, node_id, value.GetNodeId());
254
AddIntegerProp(nodeobj, class_id, value.GetCommandClassId());
255
+#if OPENZWAVE_VALUETYPE_FROM_VALUEID
256
+ AddStringProp (nodeobj, type, value.GetTypeAsString());
257
+ AddStringProp (nodeobj, genre, value.GetGenreAsString());
258
+#elif OPENZWAVE_VALUETYPE_FROM_ENUM
259
AddStringProp (nodeobj, type, OpenZWave::Value::GetTypeNameFromEnum(value.GetType()));
260
AddStringProp (nodeobj, genre, OpenZWave::Value::GetGenreNameFromEnum(value.GetGenre()));
261
+#else
262
+ AddIntegerProp(nodeobj, type, value.GetType());
263
+ AddIntegerProp(nodeobj, genre, value.GetGenre());
264
+#endif
265
AddIntegerProp(nodeobj, instance, value.GetInstance());
266
AddIntegerProp(nodeobj, index, value.GetIndex());
267
AddStringProp (nodeobj, label, mgr->GetValueLabel(value).c_str());
0 commit comments