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

Method RefreshNodeInfo

cpp/src/Manager.cpp:833–849  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Fetch the data for a node from the Z-Wave network -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

831// Fetch the data for a node from the Z-Wave network
832//-----------------------------------------------------------------------------
833bool Manager::RefreshNodeInfo
834(
835 uint32 const _homeId,
836 uint8 const _nodeId
837)
838{
839 if( Driver* driver = GetDriver( _homeId ) )
840 {
841 // Cause the node's data to be obtained from the Z-Wave network
842 // in the same way as if it had just been added.
843 LockGuard LG(driver->m_nodeMutex);
844 driver->ReloadNode(_nodeId);
845 return true;
846 }
847
848 return false;
849}
850
851//-----------------------------------------------------------------------------
852// <Manager::RequestNodeState>

Callers

nothing calls this directly

Calls 1

ReloadNodeMethod · 0.80

Tested by

no test coverage detected