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

Method GetNodeType

cpp/src/Driver.cpp:4900–4912  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the basic/generic/specific type of the specified node Returns a copy of the string rather than a const ref for thread safety -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4898// Returns a copy of the string rather than a const ref for thread safety
4899//-----------------------------------------------------------------------------
4900string Driver::GetNodeType
4901(
4902 uint8 const _nodeId
4903)
4904{
4905 LockGuard LG(m_nodeMutex);
4906 if( Node* node = GetNode( _nodeId ) )
4907 {
4908 return node->GetType();
4909 }
4910
4911 return "Unknown";
4912}
4913
4914
4915bool Driver::IsNodeZWavePlus

Callers 1

GetNodePlusTypeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected