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

Method CreateButton

cpp/src/Manager.cpp:4447–4461  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Send a NIF frame from the Controller to the Node -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4445// Send a NIF frame from the Controller to the Node
4446//-----------------------------------------------------------------------------
4447bool Manager::CreateButton
4448(
4449 uint32 const _homeId,
4450 uint8 const _nodeId,
4451 uint8 const _buttonid
4452)
4453{
4454 if (Driver *driver = GetDriver( _homeId ) ) {
4455 LockGuard LG(driver->m_nodeMutex);
4456 return driver->BeginControllerCommand(
4457 Driver::ControllerCommand_CreateButton,
4458 NULL, NULL, true, _nodeId, _buttonid);
4459 }
4460 return false;
4461}
4462
4463//-----------------------------------------------------------------------------
4464// <Manager::DeleteButton>

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected