|
FastLED 3.9.15
|
Configuration for method registration with optional metadata.
Name and function are required, metadata fields are optional.
#include <rpc.h>
Collaboration diagram for fl::Rpc::Config< Callable >:Public Member Functions | |
| Config (fl::string n, Callable f, fl::RpcMode m=fl::RpcMode::SYNC) | |
| Constructor requiring name and function (metadata is optional) | |
| Config (fl::string n, Callable f, fl::vector< fl::string > p, fl::RpcMode m=fl::RpcMode::SYNC) | |
| Constructor with params. | |
| Config (fl::string n, Callable f, fl::vector< fl::string > p, fl::string desc, fl::vector< fl::string > t={}, fl::RpcMode m=fl::RpcMode::SYNC) | |
| Constructor with all fields. | |
Public Attributes | |
| fl::string | description = "" |
| Method description (optional) | |
| Callable | fn |
| Function to register (REQUIRED) | |
| fl::RpcMode | mode = fl::RpcMode::SYNC |
| Execution mode (SYNC or ASYNC, default SYNC) | |
| fl::string | name |
| Method name (REQUIRED) | |
| fl::vector< fl::string > | params = {} |
| Parameter names (optional) | |
| fl::vector< fl::string > | tags = {} |
| Tags for grouping (optional) | |