PID plotter component
1.0
ESP-IDF component for pid plotter
|
#include "udp_handler.h"
Functions | |
void | network_manager (struct network_data *nm) |
Manages UDP connection to the server. More... | |
int | send_data (struct network_data *nm, char *payload) |
Sends data to the server through a UDP socket. More... | |
char * | recieve_data (struct network_data *nm) |
Receives data from UDP server. More... | |
void | close_network_manager (struct network_data *nm) |
Shutdown active connection, deallocate memory. More... | |
void close_network_manager | ( | struct network_data * | nm | ) |
Shutdown active connection, deallocate memory.
nm | tcp_network_data struct which contains connection info |
void network_manager | ( | struct network_data * | nm | ) |
Manages UDP connection to the server.
nm | network_data struct which contains necessary data for a UDP connection |
char* recieve_data | ( | struct network_data * | nm | ) |
Receives data from UDP server.
nm | network_data struct which contains connection info |
int send_data | ( | struct network_data * | nm, |
char * | payload | ||
) |
Sends data to the server through a UDP socket.
nm | A pointer to network_data struct |
payload | char array which contains data to be sent |