Debug Component

Example Usage


See Application::make_debug_component().

API Reference

class DebugComponent : public Component

The debug component prints out debug information like free heap size on startup.

Public Functions

void setup()

Where the component’s initialization should happen.

Analogous to Arduino’s setup(). This method is guaranteed to only be called once. Defaults to doing nothing.

void loop()

This method will be called repeatedly.

Analogous to Arduino’s loop(). setup() is guaranteed to be called before this. Defaults to doing nothing.

float get_setup_priority() const

priority of setup().

higher -> executed earlier

Defaults to 0.

The setup priority of this component

Protected Attributes

uint32_t free_heap_ = {}