@@ -282,7 +282,126 @@ namespace OZW {
282282 OZWManagerAssign (result, IsNodeSecurityDevice, homeid, nodeid);
283283 info.GetReturnValue ().Set (Nan::New<Boolean>(result));
284284 }
285-
285+
286+ // ===================================================================
287+ NAN_METHOD (OZW::GetNodePlusTypeString)
288+ // ===================================================================
289+ {
290+ Nan::HandleScope scope;
291+ CheckMinArgs (1 , " nodeid" );
292+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
293+ std::string result = OpenZWave::Manager::Get ()->GetNodePlusTypeString (homeid, nodeid);
294+ info.GetReturnValue ().Set (Nan::New<String>(result.c_str ()).ToLocalChecked ());
295+ }
296+ /*
297+ *
298+ */ // ===================================================================
299+ NAN_METHOD (OZW::GetNodeRoleString)
300+ // ===================================================================
301+ {
302+ Nan::HandleScope scope;
303+ CheckMinArgs (1 , " nodeid" );
304+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
305+ std::string result = OpenZWave::Manager::Get ()->GetNodeRoleString (homeid, nodeid);
306+ info.GetReturnValue ().Set (Nan::New<String>(result.c_str ()).ToLocalChecked ());
307+ }
308+ /*
309+ *
310+ */ // ===================================================================
311+ NAN_METHOD (OZW::GetNodePlusType)
312+ // ===================================================================
313+ {
314+ Nan::HandleScope scope;
315+ CheckMinArgs (1 , " nodeid" );
316+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
317+ uint8 result = OpenZWave::Manager::Get ()->GetNodePlusType (homeid, nodeid);
318+ info.GetReturnValue ().Set (Nan::New<Integer>(result));
319+ }
320+ /*
321+ *
322+ */ // ===================================================================
323+ NAN_METHOD (OZW::GetNodeRole)
324+ // ===================================================================
325+ {
326+ Nan::HandleScope scope;
327+ CheckMinArgs (1 , " nodeid" );
328+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
329+ uint8 result = OpenZWave::Manager::Get ()->GetNodeRole (homeid, nodeid);
330+ info.GetReturnValue ().Set (Nan::New<Integer>(result));
331+ }
332+ /*
333+ *
334+ */ // ===================================================================
335+ NAN_METHOD (OZW::GetNodeDeviceTypeString)
336+ // ===================================================================
337+ {
338+ Nan::HandleScope scope;
339+ CheckMinArgs (1 , " nodeid" );
340+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
341+ std::string result = OpenZWave::Manager::Get ()->GetNodeDeviceTypeString (homeid, nodeid);
342+ info.GetReturnValue ().Set (Nan::New<String>(result.c_str ()).ToLocalChecked ());
343+ }
344+ /*
345+ *
346+ */ // ===================================================================
347+ NAN_METHOD (OZW::GetNodeDeviceType)
348+ // ===================================================================
349+ {
350+ Nan::HandleScope scope;
351+ CheckMinArgs (1 , " nodeid" );
352+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
353+ uint16 result = OpenZWave::Manager::Get ()->GetNodeDeviceType (homeid, nodeid);
354+ info.GetReturnValue ().Set (Nan::New<Integer>(result));
355+ }
356+ /*
357+ *
358+ */ // ===================================================================
359+ NAN_METHOD (OZW::IsNodeFailed)
360+ // ===================================================================
361+ {
362+ Nan::HandleScope scope;
363+ CheckMinArgs (1 , " nodeid" );
364+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
365+ bool result = OpenZWave::Manager::Get ()->IsNodeFailed (homeid, nodeid);
366+ info.GetReturnValue ().Set (Nan::New<Boolean>(result));
367+ }
368+ /*
369+ *
370+ */ // ===================================================================
371+ NAN_METHOD (OZW::IsNodeAwake)
372+ // ===================================================================
373+ {
374+ Nan::HandleScope scope;
375+ CheckMinArgs (1 , " nodeid" );
376+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
377+ bool result = OpenZWave::Manager::Get ()->IsNodeAwake (homeid, nodeid);
378+ info.GetReturnValue ().Set (Nan::New<Boolean>(result));
379+ }
380+ /*
381+ *
382+ */ // ===================================================================
383+ NAN_METHOD (OZW::IsNodeInfoReceived)
384+ // ===================================================================
385+ {
386+ Nan::HandleScope scope;
387+ CheckMinArgs (1 , " nodeid" );
388+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
389+ bool result = OpenZWave::Manager::Get ()->IsNodeInfoReceived (homeid, nodeid);
390+ info.GetReturnValue ().Set (Nan::New<Boolean>(result));
391+ }
392+ /*
393+ *
394+ */
395+ // ===================================================================
396+ NAN_METHOD (OZW::GetNodeQueryStage)
397+ // ===================================================================
398+ {
399+ Nan::HandleScope scope;
400+ CheckMinArgs (1 , " nodeid" );
401+ uint8 nodeid = Nan::To<Number>(info[0 ]).ToLocalChecked ()->Value ();
402+ std::string result = OpenZWave::Manager::Get ()->GetNodeQueryStage (homeid, nodeid);
403+ info.GetReturnValue ().Set (Nan::New<String>(result.c_str ()).ToLocalChecked ());
404+ }
286405 /*
287406 *
288407 */
0 commit comments