This is a PlatformIO library that implements the SlvCtrl protocol.
status- list all attributes with current value (if readable)get <name>- read one attributeset <name> <value>- set one attribute (if writable)introduce- device identity line:type:{devicetype},fw:{fwversion},protocol:{protocolversion}attributes- list attributes:attributes;name:rw[type[:meta]],...
In your project's platformio.ini:
lib_deps =
slvctrlplus/slvctrl-protocol@^0.1.3See examples/ folder in this repository.
Currently the following attribute types are supported:
- IntAttribute
- FloatAttribute
- RangeAttribute<int32_t|float>
- ListAttribute<int32_t|const char*>
- StrAttribute
- BoolAttribute
The public header avoids including Arduino.h to keep it lightweight.
Implementation files include Arduino.h + SerialCommands.h (because they are required to actually run on Arduino-compatible cores).