Buildin system handler¶
The system handler is available by default and is included in the base ArduRPC library.
Function overview¶
ID | Function |
---|---|
0x01 | getProtocolVersion() |
0x02 | getLibraryVersion() |
0x03 | getMaxPacketSize() |
0x10 | getFunctionList() |
0x20 | getHandlerList() |
0x21 | getHandlerName() |
Function details¶
- uint8_t getProtocolVersion()¶
Get the protocol version. At the moment this should be 0.
- RPC_ARRAY getLibraryVersion()¶
Return the library version as RPC_ARRAY with three elements of uint8 type.
- Major version
- Minor version
- Patch level
- uint16_t getMaxPacketSize()¶
Return the maximum packet size (header + data) in bytes.
- RPC_VARRAY getFunctionList()¶
Get a list of all functions. The result has 2 columns.
- The first column is a unsigned char and represents the internal ID.
- The second column is a unsigned char and represents the type of the function.
- RPC_VARRAY getHandlerList()¶
Get a list of all handlers. The result has 2 columns.
- The first column is a unsigned char and represents the internal ID of the handler.
- The second column is an unsigned short and represents the type of the handler.
- RPC_CARRAY getHandlerName(uint8_t handler_id)¶
Get the handler name by a given ID.