SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
No Matches
sensesp::Startable Class Reference

Automatic calling of the start() method at startup. More...

#include <sensesp/system/startable.h>

Inheritance diagram for sensesp::Startable:

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 ()


class StartableCompare

Detailed Description

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.

Constructor & Destructor Documentation

◆ Startable()

sensesp::Startable::Startable ( int  priority = 0)

Definition at line 10 of file startable.cpp.

Member Function Documentation

◆ get_start_priority()

const int sensesp::Startable::get_start_priority ( )

Definition at line 30 of file startable.h.

◆ set_start_priority()

void sensesp::Startable::set_start_priority ( int  priority)

Definition at line 32 of file startable.h.

Here is the caller graph for this function:

◆ start()

virtual void sensesp::Startable::start ( )

◆ start_all()

void sensesp::Startable::start_all ( )

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.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ StartableCompare

Definition at line 45 of file startable.h.

The documentation for this class was generated from the following files: