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

Method HandleSendNodeInformationRequest

cpp/src/Driver.cpp:3898–3923  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3896// Process a request from the Z-Wave PC interface
3897//-----------------------------------------------------------------------------
3898void Driver::HandleSendNodeInformationRequest
3899(
3900 uint8* _data
3901)
3902{
3903 ControllerState state;
3904 uint8 nodeId = GetNodeNumber( m_currentMsg );
3905 if( m_currentControllerCommand == NULL )
3906 {
3907 return;
3908 }
3909 if( _data[3] != TRANSMIT_COMPLETE_OK )
3910 {
3911 // Failed
3912 HandleErrorResponse( _data[3], m_currentControllerCommand->m_controllerCommandNode, "ZW_SEND_NODE_INFORMATION" );
3913 state = ControllerState_Failed;
3914 }
3915 else
3916 {
3917 // Success
3918 Log::Write( LogLevel_Info, nodeId, "Received reply to FUNC_ID_ZW_SEND_NODE_INFORMATION - SUCCESS" );
3919 state = ControllerState_Completed;
3920 }
3921
3922 UpdateControllerState( state );
3923}
3924
3925//-----------------------------------------------------------------------------
3926// <Driver::HandleNodeNeighborUpdateRequest>

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected