5#define LED_PIN LED_BUILTIN
9#define ENABLE_LED false
144 "SSID", [
this]() {
return WiFi.SSID(); },
"Network", 1200);
146 "WiFi signal strength", [
this]() {
return WiFi.RSSI(); },
"Network",
150 "Signal K server address",
155 "Signal K server port",
159 "SK connection status",
Initialize logging/debug output.
Handles external interactions with the device via the web interface.
Manages the ESP's connection to the Wifi network.
A class for quickly configuring a SensESP application object before wiring up your sensors.
const SensESPApp * set_sk_server_port(uint16_t sk_server_port)
SensESPApp()
SensESPApp constructor.
static SensESPApp * get()
Get the singleton instance of the SensESPApp.
void operator=(const SensESPApp &)=delete
const SensESPApp * set_hostname(String hostname)
SKDeltaQueue * sk_delta_queue_
const SensESPApp * set_sk_server_address(String sk_server_address)
const SensESPApp * set_system_status_led(SystemStatusLed *system_status_led)
UILambdaOutput< String > * wifi_ssid_ui_output_
void setup()
Perform initialization of SensESPApp once builder configuration is done.
const SensESPApp * set_wifi_manager_password(const char *password)
DebugOutput * debug_output_
SystemStatusController * get_system_status_controller()
String sk_server_address_
UILambdaOutput< uint16_t > * sk_server_port_ui_output_
UILambdaOutput< String > * sk_server_connection_ui_output_
const SensESPApp * set_wifi_password(String wifi_password)
UILambdaOutput< String > * sk_server_address_ui_output_
HTTPServer * http_server_
const char * ota_password_
UIOutput< String > * sensesp_version_ui_output_
UILambdaOutput< int8_t > * wifi_rssi_ui_output_
SystemStatusLed * system_status_led_
UIOutput< String > * mac_address_ui_output_
SystemStatusController system_status_controller_
ObservableValue< String > * get_hostname_observable()
UIOutput< String > * build_info_ui_output_
const SensESPApp * enable_ota(const char *password)
Networking * get_networking()
ButtonHandler * button_handler_
const char * wifi_manager_password_
SKDeltaQueue * get_sk_delta()
MDNSDiscovery * mdns_discovery_
const SensESPApp * set_ssid(String ssid)
WSClient * get_ws_client()
SensESPApp(SensESPApp &other)=delete
UIOutput< String > * hostname_ui_output_
const SensESPApp * set_button_pin(int pin)
The base class for SensESP applications.
ObservableValue< String > * hostname_
const SensESPBaseApp * set_hostname(String hostname)
Base class for a controller that can react to system status events.
Consumes the networking and websocket states and delta counts and updates the device LED accordingly....
void connect_to(ValueConsumer< T > *consumer, uint8_t input_channel=0)
The websocket connection to the Signal K server.
String get_connection_status()
Get a String representation of the current connection state.
const String get_server_address() const
const uint16_t get_server_port() const
const char *const kSensESPVersion
#define SENSESP_BUTTON_PIN