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

Method GetNodeProductId

cpp/src/Driver.cpp:5068–5080  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the product Id string value with the specified ID Returns a copy of the string rather than a const ref for thread safety -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

5066// Returns a copy of the string rather than a const ref for thread safety
5067//-----------------------------------------------------------------------------
5068uint16 Driver::GetNodeProductId
5069(
5070 uint8 const _nodeId
5071)
5072{
5073 LockGuard LG(m_nodeMutex);
5074 if( Node* node = GetNode( _nodeId ) )
5075 {
5076 return node->GetProductId();
5077 }
5078
5079 return 0;
5080}
5081
5082//-----------------------------------------------------------------------------
5083// <Driver::GetNodeDeviceType>

Callers

nothing calls this directly

Calls 1

GetProductIdMethod · 0.45

Tested by

no test coverage detected