7static const char *
const TAG =
"copy.lock";
void dump_config() override
void control(const lock::LockCall &call) override
This class is used to encode all control actions on a lock device.
LockCall & set_state(LockState state)
Set the state of the lock device.
LockCall make_call()
Make a lock device control call, this is used to control the lock device, see the LockCall descriptio...
void publish_state(LockState state)
Publish a state to the front-end from the back-end.
void add_on_state_callback(std::function< void()> &&callback)
Set callback for state changes.
LockState state
The current reported state of the lock.
bool get_requires_code() const
std::set< LockState > get_supported_states() const
void set_assumed_state(bool assumed_state)
bool get_assumed_state() const
void set_supported_states(std::set< LockState > states)
void set_requires_code(bool requires_code)
bool get_supports_open() const
void set_supports_open(bool supports_open)
Providing packet encoding functions for exchanging data with a remote host.