----------------------------------------------------------------------------- Process a response from the Z-Wave PC interface -----------------------------------------------------------------------------
| 3115 | // Process a response from the Z-Wave PC interface |
| 3116 | //----------------------------------------------------------------------------- |
| 3117 | bool 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> |