35#define LED_ON_COLOR 0x004700
36#define LED_OFF_COLOR 0x261900
57 const char* sk_path =
"electrical.switches.lights.engineroom.state";
66 const char* config_path_button_c =
"/button/clicktime";
67 const char* config_path_status_light =
"/button/statusLight";
68 const char* config_path_sk_output =
"/signalk/path";
69 const char* config_path_repeat =
"/signalk/repeat";
89 auto click_type =
new ClickType(config_path_button_c);
91 ConfigItem(click_type)->set_title(
"Click Type")->set_sort_order(1000);
ClickType is a transform that consumes button clicks and translates them as events of type ClickTypes...
A transform that takes boolean inputs and adds button behaviors familiar to many device end users....
A special device object that can be used to control a multi-channel color rgb LED light using up to 3...
An ValueProducer that listens to specific Signal K paths and emits its value whenever it changes.
A class for quickly configuring a SensESP application object before wiring up your sensors.
SensESPAppBuilder * set_hostname(String hostname) override final
Set the device hostname.
SensESPAppBuilder * set_sk_server(String address, uint16_t port)
Set the Signal K server address and port.
SensESPAppBuilder * set_wifi_client(String ssid, String password)
Set the Wi-Fi network SSID and password.
std::shared_ptr< SensESPApp > get_app()
Get the SensESPApp object.
A high level transform designed to control a digital output (such as a relay) via manual button press...
LambdaConsumer< ClickTypes > click_consumer_
LambdaConsumer< bool > swich_consumer_
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< T, typenameVConsumer::input_type >::value, std::shared_ptr< VConsumer > >::type connect_to(std::shared_ptr< VConsumer > consumer)
Connect a producer to a transform with a different input type.
std::shared_ptr< reactesp::EventLoop > event_loop()
std::shared_ptr< SensESPApp > sensesp_app
SKPutRequest< bool > BoolSKPutRequest
std::shared_ptr< ConfigItemT< T > > ConfigItem(std::shared_ptr< T >)
Register a ConfigItemT with the ConfigItemBase.
void SetupLogging(esp_log_level_t default_level=ESP_LOG_VERBOSE)