9using namespace alarm_control_panel;
35 if (
call.get_code().value() !=
"1234") {
44 if (
call.get_code().value() !=
"1234") {
void status_momentary_error(const std::string &name, uint32_t length=5000)
const optional< std::string > & get_code() const
void publish_state(AlarmControlPanelState state)
Set the state of the alarm_control_panel.
uint32_t get_supported_features() const override
void control(const AlarmControlPanelCall &call) override
void set_type(DemoAlarmControlPanelType type)
DemoAlarmControlPanelType type_
bool get_requires_code_to_arm() const override
bool get_requires_code() const override
DemoAlarmControlPanelType
Providing packet encoding functions for exchanging data with a remote host.