MCPcopy Create free account
hub / github.com/NSPManager/NSPanelManager / ButtonEntity

Method ButtonEntity

docker/MQTTManager/include/button/button.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include <unistd.h>
18
19ButtonEntity::ButtonEntity(uint32_t light_id) {
20 this->_id = light_id;
21 this->reload_config();
22
23 CommandManager::attach_callback(boost::bind(&ButtonEntity::command_callback, this, _1));
24
25 SPDLOG_DEBUG("Button {}::{} base loaded.", this->_id, this->_name);
26}
27
28uint16_t ButtonEntity::get_room_id() {
29 return this->_room_id;

Callers

nothing calls this directly

Calls 1

reload_configMethod · 0.95

Tested by

no test coverage detected