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

Method GetNodeDeviceType

cpp/src/Driver.cpp:5086–5098  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

5084// Get the node device type as reported in the Z-Wave+ Info report.
5085//-----------------------------------------------------------------------------
5086uint16 Driver::GetNodeDeviceType
5087(
5088 uint8 const _nodeId
5089)
5090{
5091 LockGuard LG(m_nodeMutex);
5092 if( Node* node = GetNode( _nodeId ) )
5093 {
5094 return node->GetDeviceType();
5095 }
5096
5097 return 0x00; // unknown
5098}
5099
5100//-----------------------------------------------------------------------------
5101// <Driver::GetNodeDeviceTypeString>

Callers

nothing calls this directly

Calls 1

GetDeviceTypeMethod · 0.80

Tested by

no test coverage detected