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

Method GetNodeProductId

cpp/src/Manager.cpp:1463–1478  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the product Id value with the specified ID -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1461// Get the product Id value with the specified ID
1462//-----------------------------------------------------------------------------
1463string Manager::GetNodeProductId
1464(
1465 uint32 const _homeId,
1466 uint8 const _nodeId
1467)
1468{
1469 if( Driver* driver = GetDriver( _homeId ) )
1470 {
1471 uint16 mid = driver->GetNodeProductId( _nodeId );
1472 std::stringstream ss;
1473 ss << "0x" << std::hex << std::setw(4) << std::setfill('0') << mid;
1474 return ss.str();
1475 }
1476
1477 return "Unknown";
1478}
1479
1480//-----------------------------------------------------------------------------
1481// <Manager::SetNodeOn>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected