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

Method GetNodeRole

cpp/src/Driver.cpp:5126–5138  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

5124// Get the node role as reported in the Z-Wave+ Info report.
5125//-----------------------------------------------------------------------------
5126uint8 Driver::GetNodeRole
5127(
5128 uint8 const _nodeId
5129)
5130{
5131 LockGuard LG(m_nodeMutex);
5132 if( Node* node = GetNode( _nodeId ) )
5133 {
5134 return node->GetRoleType();
5135 }
5136
5137 return 0x00; // unknown
5138}
5139
5140//-----------------------------------------------------------------------------
5141// <Driver::GetNodeRoleString>

Callers

nothing calls this directly

Calls 1

GetRoleTypeMethod · 0.80

Tested by

no test coverage detected