Go to the documentation of this file.
4 #ifndef ACC_EXPLORATION_SERVER_BASE_H_
5 #define ACC_EXPLORATION_SERVER_BASE_H_
@ ACC_EXPLORATION_SERVER_STOPPED
void() write_data_function_t(const void *data, uint32_t size)
Function that writes data back to the client.
void acc_exploration_server_reset_input_buffer(void)
Reset and clear the input buffer.
Struct to handle input for acc_exploration_server_process_cmds.
get_tick_function_t * get_tick
restart_input_function_t * restart_input
uint32_t() get_tick_function_t(void)
Get tick function of server.
void acc_exploration_server_put_buffer_from_client(const void *buffer, size_t buffer_size)
Put string from client into input buffer.
void acc_exploration_server_stop_streaming(void)
Stop the streaming from the exploration server.
acc_log_level_t
This enum represents the different log levels for RSS.
bool acc_exploration_server_init(char *buffer, size_t buffer_size, const char *hw, acc_log_level_t log_level)
Initialize the exploration server.
static const exploration_server_interface_t server_if
Server interface functions.
void acc_exploration_server_deinit(void)
De-initialize the exploration server.
@ ACC_EXPLORATION_SERVER_STREAMING
acc_exploration_server_state_t
set_baudrate_function_t * set_baudrate
@ ACC_EXPLORATION_SERVER_WAITING
void acc_exploration_server_end(const exploration_server_interface_t *server_if)
End exploration server session, called to send end message to client.
bool acc_exploration_server_send_log(write_data_function_t write_func, acc_log_level_t level, const char *module, const char *buffer)
Sends a log as a json package.
uint32_t ticks_per_second
write_data_function_t * write
bool acc_exploration_server_process(const exploration_server_interface_t *server_if, acc_exploration_server_state_t *state, int32_t *ticks_until_next)
The exploration server process function.
void() set_baudrate_function_t(uint32_t baudrate)
Set baudrate of server.
void() restart_input_function_t(void)
Function that stops streaming.