Prusa MINI Firmware overview
mqtt_client_t Struct Reference

#include <mqtt.h>

Collaboration diagram for mqtt_client_t:

Public Attributes

u16_t cyclic_tick
 
u16_t keep_alive
 
u16_t server_watchdog
 
u16_t pkt_id_seq
 
u16_t inpub_pkt_id
 
u8_t conn_state
 
struct tcp_pcb * conn
 
voidconnect_arg
 
mqtt_connection_cb_t connect_cb
 
struct mqtt_request_tpend_req_queue
 
struct mqtt_request_t req_list [MQTT_REQ_MAX_IN_FLIGHT]
 
voidinpub_arg
 
mqtt_incoming_data_cb_t data_cb
 
mqtt_incoming_publish_cb_t pub_cb
 
u32_t msg_idx
 
u8_t rx_buffer [MQTT_VAR_HEADER_BUFFER_LEN]
 
struct mqtt_ringbuf_t output
 

Detailed Description

MQTT client

Member Data Documentation

◆ cyclic_tick

u16_t mqtt_client_t::cyclic_tick

Timers and timeouts

◆ keep_alive

u16_t mqtt_client_t::keep_alive

◆ server_watchdog

u16_t mqtt_client_t::server_watchdog

◆ pkt_id_seq

u16_t mqtt_client_t::pkt_id_seq

Packet identifier generator

◆ inpub_pkt_id

u16_t mqtt_client_t::inpub_pkt_id

Packet identifier of pending incoming publish

◆ conn_state

u8_t mqtt_client_t::conn_state

Connection state

◆ conn

struct tcp_pcb* mqtt_client_t::conn

◆ connect_arg

void* mqtt_client_t::connect_arg

Connection callback

◆ connect_cb

mqtt_connection_cb_t mqtt_client_t::connect_cb

◆ pend_req_queue

struct mqtt_request_t* mqtt_client_t::pend_req_queue

Pending requests to server

◆ req_list

struct mqtt_request_t mqtt_client_t::req_list[MQTT_REQ_MAX_IN_FLIGHT]

◆ inpub_arg

void* mqtt_client_t::inpub_arg

◆ data_cb

mqtt_incoming_data_cb_t mqtt_client_t::data_cb

Incoming data callback

◆ pub_cb

mqtt_incoming_publish_cb_t mqtt_client_t::pub_cb

◆ msg_idx

u32_t mqtt_client_t::msg_idx

Input

◆ rx_buffer

u8_t mqtt_client_t::rx_buffer[MQTT_VAR_HEADER_BUFFER_LEN]

◆ output

struct mqtt_ringbuf_t mqtt_client_t::output

Output ring-buffer