MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetNode

Method GetNode

cpp/src/Driver.cpp:938–953  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Locks the nodes and returns a pointer to the requested one -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

936// Locks the nodes and returns a pointer to the requested one
937//-----------------------------------------------------------------------------
938Node* Driver::GetNode
939(
940 uint8 _nodeId
941)
942{
943 if (m_nodeMutex->IsSignalled()) {
944 Log::Write(LogLevel_Error, _nodeId, "Driver Thread is Not Locked during Call to GetNode");
945 return NULL;
946 }
947 if( Node* node = m_nodes[_nodeId] )
948 {
949 return node;
950 }
951
952 return NULL;
953}
954
955//-----------------------------------------------------------------------------
956// Sending Z-Wave messages

Callers 15

processConfigRevisionMethod · 0.95
RequestNodeStateMethod · 0.80
RequestNodeDynamicMethod · 0.80
IsNodeInfoReceivedMethod · 0.80
IsNodeAwakeMethod · 0.80
IsNodeFailedMethod · 0.80
GetNodeQueryStageMethod · 0.80
GetInstanceLabelMethod · 0.80
GetValueLabelMethod · 0.80
RefreshValueMethod · 0.80

Calls 2

WriteFunction · 0.85
IsSignalledMethod · 0.45

Tested by

no test coverage detected