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

Method AddNodeStop

cpp/src/Driver.cpp:5896–5919  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Stop the Add Node mode based on API of controller -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

5894// Stop the Add Node mode based on API of controller
5895//-----------------------------------------------------------------------------
5896void Driver::AddNodeStop
5897(
5898 uint8 const _funcId
5899)
5900{
5901 if( m_currentControllerCommand == NULL )
5902 {
5903 // Controller is not doing anything
5904 return;
5905 }
5906
5907 if( m_serialAPIVersion[0] == 2 && m_serialAPIVersion[1] == 76 )
5908 {
5909 Msg* msg = new Msg( "Add Node Stop", 0xff, REQUEST, _funcId, false, false );
5910 msg->Append( ADD_NODE_STOP );
5911 SendMsg( msg, Driver::MsgQueue_Command );
5912 }
5913 else
5914 {
5915 Msg* msg = new Msg( "Add Node Stop", 0xff, REQUEST, _funcId, false, true );
5916 msg->Append( ADD_NODE_STOP );
5917 SendMsg( msg, Driver::MsgQueue_Command );
5918 }
5919}
5920
5921//-----------------------------------------------------------------------------
5922// <Driver::TestNetwork>

Callers 1

SendNextDataMethod · 0.80

Calls 1

AppendMethod · 0.45

Tested by

no test coverage detected