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

Method GetNodeType

cpp/src/Manager.cpp:1134–1149  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get a string describing the type of a node -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1132// Get a string describing the type of a node
1133//-----------------------------------------------------------------------------
1134string Manager::GetNodeType
1135(
1136 uint32 const _homeId,
1137 uint8 const _nodeId
1138)
1139{
1140 if( Driver* driver = GetDriver( _homeId ) )
1141 {
1142 if (driver->IsNodeZWavePlus(_nodeId))
1143 return driver->GetNodeDeviceTypeString(_nodeId);
1144 else
1145 return driver->GetNodeType( _nodeId );
1146 }
1147
1148 return "Unknown";
1149}
1150
1151//-----------------------------------------------------------------------------
1152// <Manager::GetNodeNeighbors>

Callers

nothing calls this directly

Calls 2

IsNodeZWavePlusMethod · 0.45

Tested by

no test coverage detected