|
SensESP 3.3.0
Universal Signal K sensor toolkit ESP32
|
#include <sensesp_app.h>
Public Member Functions | |
| SensESPApp (SensESPApp &other)=delete | |
| void | operator= (const SensESPApp &)=delete |
| virtual bool | destroy () override |
| Destroy the SensESPBaseApp instance. | |
| std::shared_ptr< SKDeltaQueue > | get_sk_delta () |
| std::shared_ptr< SystemStatusController > | get_system_status_controller () |
| std::shared_ptr< NetworkProvisioner > & | get_network_provisioner () |
| Active network provisioner (transport-agnostic). | |
| std::shared_ptr< WiFiProvisioner > & | get_wifi_provisioner () |
| Active WiFi provisioner, or nullptr if a non-WiFi transport is in use. | |
| std::shared_ptr< NetworkStateProducer > | get_network_state_producer () |
| Unified producer that emits NetworkState transitions for any active interface (WiFi STA, WiFi AP, Ethernet, …). | |
| std::shared_ptr< WiFiProvisioner > & | get_networking () |
| std::shared_ptr< SKWSClient > | get_ws_client () |
| void | set_network_provisioner_factory (std::function< std::shared_ptr< NetworkProvisioner >()> factory) |
| Install a custom factory that setup() will use to construct the NetworkProvisioner instead of the default WiFiProvisioner. | |
| Public Member Functions inherited from sensesp::SensESPBaseApp | |
| virtual void | start () |
| Start the app (activate all the subcomponents). | |
| virtual void | reset () |
| Reset the device to factory defaults. | |
| std::shared_ptr< ObservableValue< String > > | get_hostname_observable () |
| Get the hostname observable object. | |
Static Public Member Functions | |
| static std::shared_ptr< SensESPApp > | get () |
| Get the singleton instance of the SensESPApp. | |
| Static Public Member Functions inherited from sensesp::SensESPBaseApp | |
| static const std::shared_ptr< SensESPBaseApp > & | get () |
| Get the singleton instance of the SensESPBaseApp. | |
| static String | get_hostname () |
| Get the current hostname. | |
| static std::shared_ptr< reactesp::EventLoop > | get_event_loop () |
| Get the event loop object from the singleton SensESPBaseApp instance. | |
Protected Member Functions | |
| SensESPApp () | |
| SensESPApp constructor. | |
| const SensESPApp * | set_hostname (String hostname) |
| const SensESPApp * | set_ssid (String ssid) |
| const SensESPApp * | set_wifi_password (String wifi_password) |
| const SensESPApp * | set_ap_ssid (const String &ssid) |
| const SensESPApp * | set_ap_password (const String &password) |
| const SensESPApp * | set_sk_server_address (String sk_server_address) |
| const SensESPApp * | set_sk_server_port (uint16_t sk_server_port) |
| const SensESPApp * | set_system_status_led (std::shared_ptr< SystemStatusLed > &system_status_led) |
| const SensESPApp * | set_admin_user (const char *username, const char *password) |
| const SensESPApp * | enable_ota (const char *password) |
| const SensESPApp * | set_button_pin (int pin) |
| void | setup () |
| Perform initialization of SensESPApp once builder configuration is done. | |
| void | connect_status_page_items () |
| Protected Member Functions inherited from sensesp::SensESPBaseApp | |
| SensESPBaseApp () | |
| Construct a new SensESP Base App object. | |
| ~SensESPBaseApp () | |
| void | init_hostname () |
| void | set_instance (const std::shared_ptr< SensESPBaseApp > &instance) |
| const SensESPBaseApp * | set_hostname (String hostname) |
Friends | |
| class | WebServer |
| class | SensESPAppBuilder |
Additional Inherited Members | |
| Static Protected Attributes inherited from sensesp::SensESPBaseApp | |
| static std::shared_ptr< SensESPBaseApp > | instance_ = nullptr |
The default SensESP application object with networking and Signal K communication.
Definition at line 39 of file sensesp_app.h.
|
delete |
Singletons should not be cloneable
|
inlineprotected |
SensESPApp constructor.
Note that the constructor is protected, so SensESPApp should only be instantiated using SensESPAppBuilder.
Definition at line 153 of file sensesp_app.h.
|
inlineprotected |
|
inlineoverridevirtual |
Destroy the SensESPBaseApp instance.
Reimplemented from sensesp::SensESPBaseApp.
Definition at line 61 of file sensesp_app.h.
|
inlineprotected |
|
inlinestatic |
Get the singleton instance of the SensESPApp.
Definition at line 54 of file sensesp_app.h.
|
inline |
Active network provisioner (transport-agnostic).
Always non-null after setup() has run. Holds whichever provisioner the builder selected (WiFi by default, Ethernet via set_ethernet(), future PPP/cellular via set_ppp(), …).
Definition at line 88 of file sensesp_app.h.
|
inline |
Unified producer that emits NetworkState transitions for any active interface (WiFi STA, WiFi AP, Ethernet, …).
Always non-null after setup() has run. The SystemStatusController subscribes to it during setup(); user code can attach additional consumers via connect_to().
Definition at line 112 of file sensesp_app.h.
|
inline |
Definition at line 120 of file sensesp_app.h.
|
inline |
Definition at line 76 of file sensesp_app.h.
|
inline |
Definition at line 77 of file sensesp_app.h.
|
inline |
Active WiFi provisioner, or nullptr if a non-WiFi transport is in use.
Use this when WiFi-specific functionality is needed (scanning, captive portal, soft-AP IP). For transport-agnostic queries (local_ip(), mac_address(), …) prefer get_network_provisioner().
Definition at line 100 of file sensesp_app.h.
|
inline |
Definition at line 124 of file sensesp_app.h.
|
delete |
Singletons should not be assignable
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Install a custom factory that setup() will use to construct the NetworkProvisioner instead of the default WiFiProvisioner.
This is the extension point for non-WiFi transports (Ethernet, PPP/cellular, mock provisioners for tests, …). If never called, setup() falls back to constructing a WiFiProvisioner using the existing ssid_ / wifi_client_password_ / ap_ssid_ / ap_password_ setters — preserving the legacy default for existing WiFi users.
A follow-up PR referencing RFC #849 will ship an Ethernet provisioner plus a SensESPAppBuilder::set_ethernet() convenience method that wraps this setter.
Definition at line 140 of file sensesp_app.h.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedvirtual |
Perform initialization of SensESPApp once builder configuration is done.
This should be only called from the builder!
Reimplemented from sensesp::SensESPBaseApp.
Definition at line 211 of file sensesp_app.h.
|
friend |
Definition at line 526 of file sensesp_app.h.
|
friend |
Definition at line 525 of file sensesp_app.h.
|
protected |
Definition at line 441 of file sensesp_app.h.
|
protected |
Definition at line 440 of file sensesp_app.h.
|
protected |
Definition at line 515 of file sensesp_app.h.
|
protected |
Definition at line 452 of file sensesp_app.h.
|
protected |
Definition at line 453 of file sensesp_app.h.
|
protected |
Definition at line 484 of file sensesp_app.h.
|
protected |
Definition at line 482 of file sensesp_app.h.
|
protected |
Definition at line 498 of file sensesp_app.h.
|
protected |
Definition at line 493 of file sensesp_app.h.
|
protected |
Definition at line 487 of file sensesp_app.h.
|
protected |
Definition at line 489 of file sensesp_app.h.
|
protected |
Definition at line 491 of file sensesp_app.h.
|
protected |
Definition at line 506 of file sensesp_app.h.
|
protected |
Definition at line 520 of file sensesp_app.h.
|
protected |
Definition at line 464 of file sensesp_app.h.
|
protected |
Definition at line 468 of file sensesp_app.h.
|
protected |
Definition at line 447 of file sensesp_app.h.
|
protected |
Definition at line 522 of file sensesp_app.h.
|
protected |
Definition at line 469 of file sensesp_app.h.
|
protected |
Definition at line 446 of file sensesp_app.h.
|
protected |
Definition at line 456 of file sensesp_app.h.
|
protected |
Definition at line 455 of file sensesp_app.h.
|
protected |
Definition at line 460 of file sensesp_app.h.
|
protected |
Definition at line 442 of file sensesp_app.h.
|
protected |
Definition at line 444 of file sensesp_app.h.
|
protected |
Definition at line 443 of file sensesp_app.h.
|
protected |
Definition at line 458 of file sensesp_app.h.
|
protected |
Definition at line 513 of file sensesp_app.h.
|
protected |
Definition at line 461 of file sensesp_app.h.
|
protected |
Definition at line 438 of file sensesp_app.h.
|
protected |
Definition at line 476 of file sensesp_app.h.
|
protected |
Definition at line 480 of file sensesp_app.h.
|
protected |
Definition at line 439 of file sensesp_app.h.
|
protected |
Definition at line 478 of file sensesp_app.h.
|
protected |
Definition at line 436 of file sensesp_app.h.
|
protected |
Definition at line 519 of file sensesp_app.h.
|
protected |
Definition at line 450 of file sensesp_app.h.
|
protected |
Definition at line 449 of file sensesp_app.h.
|
protected |
Definition at line 504 of file sensesp_app.h.
|
protected |
Definition at line 500 of file sensesp_app.h.
|
protected |
Definition at line 508 of file sensesp_app.h.
|
protected |
Definition at line 496 of file sensesp_app.h.
|
protected |
Definition at line 502 of file sensesp_app.h.
|
protected |
Definition at line 510 of file sensesp_app.h.
|
protected |
Definition at line 521 of file sensesp_app.h.
|
protected |
Definition at line 466 of file sensesp_app.h.
|
protected |
Definition at line 437 of file sensesp_app.h.
|
protected |
Definition at line 457 of file sensesp_app.h.
|
protected |
Definition at line 473 of file sensesp_app.h.
|
protected |
Definition at line 523 of file sensesp_app.h.
|
protected |
Definition at line 471 of file sensesp_app.h.
|
protected |
Definition at line 462 of file sensesp_app.h.