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

Method GetNodePlusType

cpp/src/Driver.cpp:5162–5173  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the node role as a string as reported in the Z-Wave+ Info report. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

5160// Get the node role as a string as reported in the Z-Wave+ Info report.
5161//-----------------------------------------------------------------------------
5162uint8 Driver::GetNodePlusType
5163(
5164 uint8 const _nodeId
5165)
5166{
5167 LockGuard LG(m_nodeMutex);
5168 if( Node* node = GetNode( _nodeId ) )
5169 {
5170 return node->GetNodeType();
5171 }
5172 return 0x00; // unknown
5173}
5174
5175//-----------------------------------------------------------------------------
5176// <Driver::GetNodePlusTypeString>

Callers

nothing calls this directly

Calls 1

GetNodeTypeMethod · 0.45

Tested by

no test coverage detected