Maximum size of payload (number of bytes). Must be a constant value. Any changes during program execution will be ignored.
LPP@/lpp
A low power payload (LPP).
To use the node in your project you should have the wayland/cayenne-lpp 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
#pragma XOD require "https://github.com/ElectronicCats/CayenneLPP"
#pragma XOD require "https://github.com/bblanchon/ArduinoJson"
#include <CayenneLPP.h>
node {
meta {
using Type = CayenneLPP*;
}
uint8_t mem[sizeof(CayenneLPP)];
void evaluate(Context ctx) {
if (!isSettingUp()) return;
uint8_t size = getValue<input_Size>(ctx);
Type lpp = new (mem) CayenneLPP(size);
emitValue<output_LPP>(ctx, lpp);
}
}