23static uint8_t _Q_parser_check_validity(
Q_packet_s *packet){
50 packet->
raw_data = pvPortMalloc(
sizeof(
char) * len);
55 if(_Q_parser_check_validity(packet)){
Q_packet_s * Q_parser_parse(void *data, uint8_t len)
parses and converts received data into a Q_packet instance
char * Q_parser_forge_poll_reply(uint8_t node_id)
Forges a poll reply packet using provided node's id.
#define Q_PACKETID_STRING
#define Q_DISCOVERREPLY_BYTELENGTH
void Q_parser_free(Q_packet_s *packet)
Frees packet's dynamically allocated ressources.
#define Q_PACKETID_BYTELENGTH
#define Q_POLLREPLY_BYTELENGTH
char * Q_parser_forge_discover_reply(uint8_t node_id)
Forges a discover reply packet using provided node's id.
Q packet structure object.
Q_packet_opcode_cmd_e opcode