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

Method HandleReplaceFailedNodeResponse

cpp/src/Driver.cpp:3117–3138  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3115// Process a response from the Z-Wave PC interface
3116//-----------------------------------------------------------------------------
3117bool Driver::HandleReplaceFailedNodeResponse
3118(
3119 uint8* _data
3120)
3121{
3122 bool res = true;
3123 ControllerState state = ControllerState_InProgress;
3124 if( _data[2] )
3125 {
3126 // Command failed
3127 Log::Write( LogLevel_Warning, GetNodeNumber( m_currentMsg ), "WARNING: Received reply to FUNC_ID_ZW_REPLACE_FAILED_NODE - command failed" );
3128 state = ControllerState_Failed;
3129 res = false;
3130 }
3131 else
3132 {
3133 Log::Write( LogLevel_Info, GetNodeNumber( m_currentMsg ), "Received reply to FUNC_ID_ZW_REPLACE_FAILED_NODE - command in progress" );
3134 }
3135
3136 UpdateControllerState( state );
3137 return res;
3138}
3139
3140//-----------------------------------------------------------------------------
3141// <Driver::HandleSendDataResponse>

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected