SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
|
Automatic calling of the start() method at startup. More...
#include <sensesp/system/startable.h>
Public Member Functions | |
Startable (int priority=0) | |
virtual void | start () |
const int | get_start_priority () |
void | set_start_priority (int priority) |
Static Public Member Functions | |
static void | start_all () |
Friends | |
class | StartableCompare |
Automatic calling of the start() method at startup.
Classes that implement "Startable" will have their start() method called automatically at startup when the SensESP app itself is started. The optional priority allows for certain classes to be initialized first. The default priority is zero. A higher priority (i.e. greater than zero) will be started before a lower one (i.e. less than zero).
Definition at line 20 of file startable.h.
sensesp::Startable::Startable | ( | int | priority = 0 | ) |
Definition at line 10 of file startable.cpp.
Definition at line 30 of file startable.h.
Called during the initialization process. Override this method to add runtime initialization code to your class
Reimplemented in sensesp::SmartSwitchController, sensesp::DebugOutput, sensesp::MDNSDiscovery, sensesp::HTTPServer, sensesp::WiFiStateProducer, sensesp::Networking, sensesp::OTA, sensesp::WSClient, sensesp::ConstantSensor< T >, sensesp::SKDeltaQueue, sensesp::BaseButtonHandler, sensesp::BaseBlinker, sensesp::Frequency, sensesp::PressRepeater, sensesp::RepeatReport< T >, sensesp::AnalogInput, sensesp::DigitalInputState, sensesp::DigitalInputCounter, sensesp::DigitalInputChange, sensesp::RepeatSensor< T >, sensesp::SystemHz, sensesp::FreeMem, sensesp::Uptime, sensesp::IPAddrDev, sensesp::WiFiSignal, and sensesp::IntegratorT< C, P >.
Definition at line 28 of file startable.h.
|
static |
Called by the SensESP framework to initialize all of the objects marked with this class. They will be initialized in priorty order. If you want to see see the name of each sensor and transport in the serial monitor as each one is enabled, add the following to your project's platformio.ini file:
build_unflags = -fno-rtti
Definition at line 14 of file startable.cpp.
|
friend |
Definition at line 45 of file startable.h.