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

Method HandleDeleteReturnRouteRequest

cpp/src/Driver.cpp:3867–3892  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Process a request from the Z-Wave PC interface -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3865// Process a request from the Z-Wave PC interface
3866//-----------------------------------------------------------------------------
3867void Driver::HandleDeleteReturnRouteRequest
3868(
3869 uint8* _data
3870)
3871{
3872 ControllerState state;
3873 uint8 nodeId = GetNodeNumber( m_currentMsg );
3874 if( m_currentControllerCommand == NULL )
3875 {
3876 return;
3877 }
3878 if( _data[3] != TRANSMIT_COMPLETE_OK)
3879 {
3880 // Failed
3881 HandleErrorResponse( _data[3], m_currentControllerCommand->m_controllerCommandNode, "ZW_DELETE_RETURN_ROUTE", true );
3882 state = ControllerState_Failed;
3883 }
3884 else
3885 {
3886 // Success
3887 Log::Write( LogLevel_Info, nodeId, "Received reply to FUNC_ID_ZW_DELETE_RETURN_ROUTE for node %d - SUCCESS", m_currentControllerCommand->m_controllerCommandNode );
3888 state = ControllerState_Completed;
3889 }
3890
3891 UpdateControllerState( state );
3892}
3893
3894//-----------------------------------------------------------------------------
3895// <Driver::HandleSendNodeInformationRequest>

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected