Prusa MINI Firmware overview
|
Go to the documentation of this file.
37 #ifndef LWIP_HDR_APPS_MQTT_CLIENT_H
38 #define LWIP_HDR_APPS_MQTT_CLIENT_H
52 #define MQTT_PORT 1883
230 #define mqtt_subscribe(client, topic, qos, cb, arg) mqtt_sub_unsub(client, topic, qos, cb, arg, 1)
233 #define mqtt_unsubscribe(client, topic, cb, arg) mqtt_sub_unsub(client, topic, 0, cb, arg, 0)
const char * client_user
Definition: mqtt.h:64
err_t mqtt_client_connect(mqtt_client_t *client, const ip_addr_t *ipaddr, u16_t port, mqtt_connection_cb_t cb, void *arg, const struct mqtt_connect_client_info_t *client_info)
u8_t will_retain
Definition: mqtt.h:73
ip4_addr_t ipaddr
Definition: lwip.c:73
const char * will_msg
Definition: mqtt.h:71
struct mqtt_ringbuf_t output
Definition: mqtt.h:204
u8_t conn_state
Definition: mqtt.h:188
uint16_t u16_t
Definition: arch.h:121
void mqtt_set_inpub_callback(mqtt_client_t *client, mqtt_incoming_publish_cb_t, mqtt_incoming_data_cb_t data_cb, void *arg)
void(* mqtt_connection_cb_t)(mqtt_client_t *client, void *arg, mqtt_connection_status_t status)
Definition: mqtt.h:102
void(* mqtt_incoming_data_cb_t)(void *arg, const u8_t *data, u16_t len, u8_t flags)
Definition: mqtt.h:125
void(* mqtt_incoming_publish_cb_t)(void *arg, const char *topic, u32_t tot_len)
Definition: mqtt.h:137
#define MQTT_REQ_MAX_IN_FLIGHT
Definition: mqtt_opts.h:71
uint8_t data[8]
Definition: masstorage.h:49
uint32_t u32_t
Definition: arch.h:123
struct mqtt_request_t * pend_req_queue
Definition: mqtt.h:194
#define MQTT_VAR_HEADER_BUFFER_LEN
Definition: mqtt_opts.h:64
u16_t keep_alive
Definition: mqtt.h:67
const char * will_topic
Definition: mqtt.h:70
mqtt_incoming_publish_cb_t pub_cb
Definition: mqtt.h:199
err_t mqtt_publish(mqtt_client_t *client, const char *topic, const void *payload, u16_t payload_length, u8_t qos, u8_t retain, mqtt_request_cb_t cb, void *arg)
u8_t will_qos
Definition: mqtt.h:72
u16_t pkt_id
Definition: mqtt.h:164
u32_t msg_idx
Definition: mqtt.h:201
const char * client_id
Definition: mqtt.h:62
uint8_t u8_t
Definition: arch.h:119
mqtt_incoming_data_cb_t data_cb
Definition: mqtt.h:198
ip6_addr_t ip_addr_t
Definition: ip_addr.h:290
u16_t inpub_pkt_id
Definition: mqtt.h:186
void * inpub_arg
Definition: mqtt.h:196
void
Definition: png.h:1083
void mqtt_disconnect(mqtt_client_t *client)
mqtt_request_cb_t cb
Definition: mqtt.h:161
u16_t timeout_diff
Definition: mqtt.h:166
u16_t keep_alive
Definition: mqtt.h:181
mqtt_connection_status_t
Definition: mqtt.h:79
s8_t err_t
Definition: err.h:57
u8_t rx_buffer[MQTT_VAR_HEADER_BUFFER_LEN]
Definition: mqtt.h:202
mqtt_client_t * mqtt_client_new(void)
struct mqtt_request_t req_list[MQTT_REQ_MAX_IN_FLIGHT]
Definition: mqtt.h:195
u16_t put
Definition: mqtt.h:171
u8_t buf[MQTT_OUTPUT_RINGBUF_SIZE]
Definition: mqtt.h:173
u16_t cyclic_tick
Definition: mqtt.h:180
struct tcp_pcb * conn
Definition: mqtt.h:189
u8_t mqtt_client_is_connected(mqtt_client_t *client)
static status_t status
Definition: filament_sensor.c:37
u16_t pkt_id_seq
Definition: mqtt.h:184
mqtt_connection_cb_t connect_cb
Definition: mqtt.h:192
struct mqtt_request_t * next
Definition: mqtt.h:159
void * connect_arg
Definition: mqtt.h:191
const char * client_pass
Definition: mqtt.h:65
void * arg
Definition: mqtt.h:162
void(* mqtt_request_cb_t)(void *arg, err_t err)
Definition: mqtt.h:149
u16_t get
Definition: mqtt.h:172
#define MQTT_OUTPUT_RINGBUF_SIZE
Definition: mqtt_opts.h:56
err_t mqtt_sub_unsub(mqtt_client_t *client, const char *topic, u8_t qos, mqtt_request_cb_t cb, void *arg, u8_t sub)
u16_t server_watchdog
Definition: mqtt.h:182