Skip to content

SlvCtrlPlus/slvctrl-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlvCtrlProtocol

PlatformIO Registry

This is a PlatformIO library that implements the SlvCtrl protocol.

Commands

  • status - list all attributes with current value (if readable)
  • get <name> - read one attribute
  • set <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]],...

Install (PlatformIO)

In your project's platformio.ini:

lib_deps =
  slvctrlplus/slvctrl-protocol@^0.1.3

Usage

See 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

Portability note

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

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages