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

Method HandleAssignReturnRouteRequest

cpp/src/Driver.cpp:3836–3861  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3834// Process a request from the Z-Wave PC interface
3835//-----------------------------------------------------------------------------
3836void Driver::HandleAssignReturnRouteRequest
3837(
3838 uint8* _data
3839)
3840{
3841 ControllerState state;
3842 uint8 nodeId = GetNodeNumber( m_currentMsg );
3843 if( m_currentControllerCommand == NULL )
3844 {
3845 return;
3846 }
3847 if( _data[3] )
3848 {
3849 // Failed
3850 HandleErrorResponse( _data[3], m_currentControllerCommand->m_controllerCommandNode, "ZW_ASSIGN_RETURN_ROUTE", true );
3851 state = ControllerState_Failed;
3852 }
3853 else
3854 {
3855 // Success
3856 Log::Write( LogLevel_Info, nodeId, "Received reply to FUNC_ID_ZW_ASSIGN_RETURN_ROUTE for node %d - SUCCESS", m_currentControllerCommand->m_controllerCommandNode );
3857 state = ControllerState_Completed;
3858 }
3859
3860 UpdateControllerState( state );
3861}
3862
3863//-----------------------------------------------------------------------------
3864// <Driver::HandleDeleteReturnRouteRequest>

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected