Skip to content

Commit 6501844

Browse files
authored
Update openzwave-nodes.cc
1 parent 104975a commit 6501844

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/openzwave-nodes.cc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,17 @@ namespace OZW {
105105
}
106106
}
107107

108-
108+
NAN_METHOD(OZW::ReleaseButton)
109+
// ===================================================================
110+
{
111+
Nan::HandleScope scope;
112+
OpenZWave::ValueID* ozwvid = populateValueId(info);
113+
if (ozwvid == NULL) {
114+
Nan::ThrowTypeError("OpenZWave valueId not found");
115+
} else {
116+
OpenZWave::Manager::Get()->ReleaseButton(*ozwvid);
117+
}
118+
}
109119
/*
110120
* Write a new location string to the device, if supported.
111121
*/

0 commit comments

Comments
 (0)