SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
|
The base class for SensESP applications. More...
#include <sensesp_base_app.h>
Public Member Functions | |
virtual void | start () |
Start the app (activate all the subcomponents) | |
virtual void | reset () |
Reset the device to factory defaults. | |
ObservableValue< String > * | get_hostname_observable () |
Get the hostname observable object. | |
Static Public Member Functions | |
static SensESPBaseApp * | get () |
Get the singleton instance of the SensESPBaseApp. | |
static String | get_hostname () |
Get the current hostname. | |
Protected Member Functions | |
SensESPBaseApp () | |
Construct a new SensESP Base App object. | |
virtual void | setup () |
Perform initialization of SensESPBaseApp once builder configuration is done. | |
const SensESPBaseApp * | set_hostname (String hostname) |
Protected Attributes | |
ObservableValue< String > * | hostname_ |
Filesystem * | filesystem_ |
DebugOutput * | debug_output_ |
Static Protected Attributes | |
static SensESPBaseApp * | instance_ = nullptr |
The base class for SensESP applications.
SensESPBaseApp is the base class for all apps. It can be either expanded in child classes to provide additional functionality, or used as is to provide a bare-bones application.
Definition at line 32 of file sensesp_base_app.h.
|
protected |
Construct a new SensESP Base App object.
This constructor must only be used in SensESPBaseAppBuilder, and must be called only once. For compatibility reasons, the class hasn't been refactored into a singleton.
Definition at line 20 of file sensesp_base_app.cpp.
|
static |
Get the singleton instance of the SensESPBaseApp.
Get the singleton SensESPBaseApp singleton instance. The instance must be set by the builder.
Definition at line 30 of file sensesp_base_app.cpp.
|
static |
Get the current hostname.
Definition at line 74 of file sensesp_base_app.cpp.
ObservableValue< String > * sensesp::SensESPBaseApp::get_hostname_observable | ( | ) |
Get the hostname observable object.
Definition at line 65 of file sensesp_base_app.cpp.
|
virtual |
Reset the device to factory defaults.
Definition at line 55 of file sensesp_base_app.cpp.
|
inlineprotected |
Definition at line 79 of file sensesp_base_app.h.
|
protectedvirtual |
Perform initialization of SensESPBaseApp once builder configuration is done.
This should be only called from the builder!
Reimplemented in sensesp::SensESPApp.
Definition at line 39 of file sensesp_base_app.cpp.
|
virtual |
Start the app (activate all the subcomponents)
Definition at line 47 of file sensesp_base_app.cpp.
|
protected |
Definition at line 77 of file sensesp_base_app.h.
|
protected |
Definition at line 76 of file sensesp_base_app.h.
|
protected |
Definition at line 74 of file sensesp_base_app.h.
|
staticprotected |
Definition at line 72 of file sensesp_base_app.h.