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

Method HandleNetworkUpdateResponse

cpp/src/Driver.cpp:2742–2763  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2740// Process a response from the Z-Wave PC interface
2741//-----------------------------------------------------------------------------
2742bool Driver::HandleNetworkUpdateResponse
2743(
2744 uint8* _data
2745)
2746{
2747 bool res = true;
2748 ControllerState state = ControllerState_InProgress;
2749 if( _data[2] )
2750 {
2751 Log::Write( LogLevel_Info, GetNodeNumber( m_currentMsg ), "Received reply to FUNC_ID_ZW_REQUEST_NETWORK_UPDATE - command in progress" );
2752 }
2753 else
2754 {
2755 // Failed
2756 Log::Write( LogLevel_Warning, GetNodeNumber( m_currentMsg ), "WARNING: Received reply to FUNC_ID_ZW_REQUEST_NETWORK_UPDATE - command failed" );
2757 state = ControllerState_Failed;
2758 res = false;
2759 }
2760
2761 UpdateControllerState( state );
2762 return res;
2763}
2764
2765//-----------------------------------------------------------------------------
2766// <Driver::HandleSetSUCNodeIdResponse>

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected