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

Method GetNodeRoleString

cpp/src/Driver.cpp:5144–5156  ·  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

5142// Get the node role as a string as reported in the Z-Wave+ Info report.
5143//-----------------------------------------------------------------------------
5144string Driver::GetNodeRoleString
5145(
5146 uint8 const _nodeId
5147)
5148{
5149 LockGuard LG(m_nodeMutex);
5150 if( Node* node = GetNode( _nodeId ) )
5151 {
5152 return node->GetRoleTypeString();
5153 }
5154
5155 return ""; // unknown
5156}
5157
5158//-----------------------------------------------------------------------------
5159// <Driver::GetNodePlusType>

Callers

nothing calls this directly

Calls 1

GetRoleTypeStringMethod · 0.80

Tested by

no test coverage detected