12 Debug.setSerialEnabled(
true);
15 debugI(
"\nSerial debugging enabled");
50 debugI(
"Starting subsystems");
52 debugD(
"All sensors and transforms started");
56 debugW(
"Resetting the device configuration to system defaults.");
59 ReactESP::app->onDelay(1000, []() {
Initialize logging/debug output.
The base class for SensESP applications.
static SensESPBaseApp * get()
Get the singleton instance of the SensESPBaseApp.
virtual void reset()
Reset the device to factory defaults.
ObservableValue< String > * hostname_
DebugOutput * debug_output_
static SensESPBaseApp * instance_
static String get_hostname()
Get the current hostname.
virtual void start()
Start the app (activate all the subcomponents)
SensESPBaseApp()
Construct a new SensESP Base App object.
virtual void setup()
Perform initialization of SensESPBaseApp once builder configuration is done.
ObservableValue< String > * get_hostname_observable()
Get the hostname observable object.
virtual const T & get() const
constexpr auto kDefaultHostname
void SetupSerialDebug(uint32_t baudrate)