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

Method RequestNodeNeighbors

cpp/src/Driver.cpp:5368–5387  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the neighbour information for a node from the controller -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

5366// Get the neighbour information for a node from the controller
5367//-----------------------------------------------------------------------------
5368void Driver::RequestNodeNeighbors
5369(
5370 uint8 const _nodeId,
5371 uint32 const _requestFlags
5372)
5373{
5374 if( IsAPICallSupported( FUNC_ID_ZW_GET_ROUTING_INFO ) )
5375 {
5376 // Note: This is not the same as RequestNodeNeighbourUpdate. This method
5377 // merely requests the controller's current neighbour information and
5378 // the reply will be copied into the relevant Node object for later use.
5379 Log::Write( LogLevel_Detail, GetNodeNumber( m_currentMsg ), "Requesting routing info (neighbor list) for Node %d", _nodeId );
5380 Msg* msg = new Msg( "Get Routing Info", _nodeId, REQUEST, FUNC_ID_ZW_GET_ROUTING_INFO, false );
5381 msg->Append( _nodeId );
5382 msg->Append( 0 ); // don't remove bad links
5383 msg->Append( 0 ); // don't remove non-repeaters
5384 msg->Append( 3 ); // funcid
5385 SendMsg( msg, MsgQueue_Command );
5386 }
5387}
5388
5389//-----------------------------------------------------------------------------
5390// <Driver::BeginControllerCommand>

Callers 1

AdvanceQueriesMethod · 0.80

Calls 3

IsAPICallSupportedFunction · 0.85
WriteFunction · 0.85
AppendMethod · 0.45

Tested by

no test coverage detected