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

Method GetNodeRole

cpp/src/Manager.cpp:1396–1408  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1394// Get the node role as reported in the Z-Wave+ Info report.
1395//-----------------------------------------------------------------------------
1396uint8 Manager::GetNodeRole
1397(
1398 uint32 const _homeId,
1399 uint8 const _nodeId
1400)
1401{
1402 if( Driver* driver = GetDriver( _homeId ) )
1403 {
1404 return driver->GetNodeRole( _nodeId );
1405 }
1406
1407 return 0x00; // unknown
1408}
1409
1410//-----------------------------------------------------------------------------
1411// <Manager::GetNodeRole>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected