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

Method HandleDeleteReturnRouteResponse

cpp/src/Driver.cpp:2986–3007  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2984// Process a response from the Z-Wave PC interface
2985//-----------------------------------------------------------------------------
2986bool Driver::HandleDeleteReturnRouteResponse
2987(
2988 uint8* _data
2989)
2990{
2991 bool res = true;
2992 ControllerState state = ControllerState_InProgress;
2993 if( _data[2] )
2994 {
2995 Log::Write( LogLevel_Info, GetNodeNumber( m_currentMsg ), "Received reply to FUNC_ID_ZW_DELETE_RETURN_ROUTE - command in progress" );
2996 }
2997 else
2998 {
2999 // Failed
3000 Log::Write( LogLevel_Warning, GetNodeNumber( m_currentMsg ), "WARNING: Received reply to FUNC_ID_ZW_DELETE_RETURN_ROUTE - command failed" );
3001 state = ControllerState_Failed;
3002 res = false;
3003 }
3004
3005 UpdateControllerState( state );
3006 return res;
3007}
3008
3009//-----------------------------------------------------------------------------
3010// <Driver::HandleRemoveFailedNodeResponse>

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected