preferences

wayland/esp32-preferences/preferences

Create a preferences object.
preferences
@/preferences
Create a preferences object.
preferences
Prefs
Prefs@/preferences
A preferences object.
To use the node in your project you should have the wayland/esp32-preferences library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

#include <Preferences.h>

node {
    meta {
        using Type = Preferences*;
    }

    Preferences prefs = Preferences();

    void evaluate(Context ctx) {
        // It should be evaluated only once on the first (setup) transaction
        if (!isSettingUp())
            return;
        emitValue<output_Prefs>(ctx, &prefs);
    }

}