A class for quickly configuring a SensESP application object before wiring up your sensors.
More...
#include <sensesp_app_builder.h>
A class for quickly configuring a SensESP application object before wiring up your sensors.
Definition at line 21 of file sensesp_app_builder.h.
◆ SensESPAppBuilder()
| sensesp::SensESPAppBuilder::SensESPAppBuilder |
( |
| ) |
|
|
inline |
◆ disable_wifi()
◆ enable_free_mem_sensor()
◆ enable_ip_address_sensor()
Report the IP address of the device.
- Parameters
-
- Returns
- SensESPAppBuilder*
Definition at line 243 of file sensesp_app_builder.h.
◆ enable_ota()
Enable over-the-air updates for the device.
- Parameters
-
| password | OTA authentication password. |
- Returns
- SensESPAppBuilder*
Definition at line 302 of file sensesp_app_builder.h.
◆ enable_system_hz_sensor()
Enable the System Hz sensor.
The System Hz sensor is a built-in sensor that measures how many times the system loop is executed per second.
- Parameters
-
- Returns
- SensESPAppBuilder*
Definition at line 195 of file sensesp_app_builder.h.
◆ enable_system_info_sensors()
◆ enable_uptime_sensor()
Report the system uptime in seconds since the last reboot.
- Parameters
-
- Returns
- SensESPAppBuilder*
Definition at line 227 of file sensesp_app_builder.h.
◆ enable_wifi_signal_sensor()
Report the Wi-Fi signal strength.
- Parameters
-
- Returns
- SensESPAppBuilder*
Definition at line 259 of file sensesp_app_builder.h.
◆ enable_wifi_watchdog()
◆ get_app()
| std::shared_ptr< SensESPApp > sensesp::SensESPAppBuilder::get_app |
( |
| ) |
|
|
inline |
◆ set_admin_user()
| SensESPAppBuilder * sensesp::SensESPAppBuilder::set_admin_user |
( |
const char * | username, |
|
|
const char * | password ) |
|
inline |
◆ set_button_pin()
◆ set_ethernet()
template<typename ProvisionerConfigT>
| SensESPAppBuilder * sensesp::SensESPAppBuilder::set_ethernet |
( |
ProvisionerConfigT | config | ) |
|
|
inline |
Configure the app to use a non-WiFi NetworkProvisioner.
Today only Ethernet on ESP32-P4 is supported. Use as:
#include "sensesp/net/ethernet_provisioner.h"
...
builder.set_ethernet(EthernetConfig::waveshare_esp32p4_poe())
->get_app();
- Template Parameters
-
| ProvisionerConfigT | a configuration struct that exposes a nested using ProvisionerType = …; typedef pointing at the concrete NetworkProvisioner implementation. EthernetConfig from sensesp/net/ethernet_provisioner.h is the only such type today. Templated so this header does not need to pull in any provisioner implementation files — users who call set_ethernet() must include the relevant provisioner header in their own translation unit. |
Calling set_ethernet() on a target whose provisioner header is empty (e.g. classic ESP32, where EthernetConfig is not declared) produces a clean compile error at the use site rather than a silent runtime failure. Implicitly calls disable_wifi() so the WiFi-specific HTTP handlers and soft-AP fall-back are not registered.
Definition at line 127 of file sensesp_app_builder.h.
◆ set_hostname()
|
|
inlinefinaloverridevirtual |
◆ set_sk_server()
| SensESPAppBuilder * sensesp::SensESPAppBuilder::set_sk_server |
( |
String | address, |
|
|
uint16_t | port ) |
|
inline |
Set the Signal K server address and port.
If not set, mDNS is used to discover the Signal K server.
- Parameters
-
- Returns
- SensESPAppBuilder*
Definition at line 146 of file sensesp_app_builder.h.
◆ set_system_status_led()
Set the system status led object.
This allows custom status LED patterns to be used.
- Parameters
-
- Returns
- SensESPAppBuilder*
Definition at line 181 of file sensesp_app_builder.h.
◆ set_wifi()
| SensESPAppBuilder * sensesp::SensESPAppBuilder::set_wifi |
( |
String | ssid, |
|
|
String | password ) |
|
inline |
◆ set_wifi_access_point()
| SensESPAppBuilder * sensesp::SensESPAppBuilder::set_wifi_access_point |
( |
const String & | ssid, |
|
|
const String & | password ) |
|
inline |
Set the wifi access point object SSID and password.
To disable the SSID, set both to empty strings.
- Parameters
-
- Returns
- SensESPAppBuilder*
Definition at line 73 of file sensesp_app_builder.h.
◆ set_wifi_client()
| SensESPAppBuilder * sensesp::SensESPAppBuilder::set_wifi_client |
( |
String | ssid, |
|
|
String | password ) |
|
inline |
Set the Wi-Fi network SSID and password.
If not set, WiFiManager is used to create an access point for configuring the settings.
- Parameters
-
- Returns
- SensESPAppBuilder*
Definition at line 53 of file sensesp_app_builder.h.
◆ set_wifi_manager_password()
| SensESPAppBuilder * sensesp::SensESPAppBuilder::set_wifi_manager_password |
( |
const char * | password | ) |
|
|
inline |
Set the wifi manager password.
Set the password for the WiFi configuration access point that is enabled after device reset if no wifi configuration is provided in the application code.
- Parameters
-
- Returns
- SensESPAppBuilder*
Definition at line 318 of file sensesp_app_builder.h.
◆ app_
| std::shared_ptr<SensESPApp> sensesp::SensESPAppBuilder::app_ |
|
protected |
The documentation for this class was generated from the following file: