std::function< void(bool)> state_lambda_
LVGLSwitch(std::function< void(bool)> state_lambda)
void write_state(bool value) override
Base class for all switches.
optional< bool > get_initial_state_with_restore_mode()
Returns the initial state of the switch, after applying restore mode rules.
Providing packet encoding functions for exchanging data with a remote host.