Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
RPC server API . More...
Macros | |
#define | RPC_SERVER_MAX_ACK_PERIOD 8 |
Maximum ACK period supported by the RPC server. | |
Functions | |
void | rpc_server_queue_command (struct net_buf *buf) |
Push command ePacket to RPC server. | |
void | rpc_server_queue_data (struct net_buf *buf) |
Push data ePacket to RPC server. | |
int | infuse_rpc_server_user_command_runner (uint16_t command_id, enum epacket_auth auth, struct net_buf *request, struct net_buf **response) |
Command handling for user-defined RPCs. | |
RPC server API .
#define RPC_SERVER_MAX_ACK_PERIOD 8 |
#include <infuse/rpc/server.h>
Maximum ACK period supported by the RPC server.
int infuse_rpc_server_user_command_runner | ( | uint16_t | command_id, |
enum epacket_auth | auth, | ||
struct net_buf * | request, | ||
struct net_buf ** | response ) |
#include <infuse/rpc/server.h>
Command handling for user-defined RPCs.
command_id | RPC command identifier |
auth | Authentication level of request |
request | RPC request packet |
response | Storage for RPC response pointer (NULL when called) |
0 | Command exists and was successfully run |
-EACCES | Authentication level was not sufficient to run command |
-ENOTSUP | Command implementation does not exist |
void rpc_server_queue_command | ( | struct net_buf * | buf | ) |
#include <infuse/rpc/server.h>
Push command ePacket to RPC server.
buf | INFUSE_RPC_CMD ePacket buffer |
void rpc_server_queue_data | ( | struct net_buf * | buf | ) |
#include <infuse/rpc/server.h>
Push data ePacket to RPC server.
buf | INFUSE_RPC_DATA ePacket buffer |