----------------------------------------------------------------------------- Get the neighbour information for a node from the controller -----------------------------------------------------------------------------
| 5366 | // Get the neighbour information for a node from the controller |
| 5367 | //----------------------------------------------------------------------------- |
| 5368 | void 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> |
no test coverage detected