|
void | mqtt_client_init (struct mqtt_client *client) |
| Initializes the client instance.
|
|
int | mqtt_connect (struct mqtt_client *client) |
| API to request new MQTT client connection.
|
|
int | mqtt_publish (struct mqtt_client *client, const struct mqtt_publish_param *param) |
| API to publish messages on topics.
|
|
int | mqtt_publish_qos1_ack (struct mqtt_client *client, const struct mqtt_puback_param *param) |
| API used by client to send acknowledgment on receiving QoS1 publish message.
|
|
int | mqtt_publish_qos2_receive (struct mqtt_client *client, const struct mqtt_pubrec_param *param) |
| API used by client to send acknowledgment on receiving QoS2 publish message.
|
|
int | mqtt_publish_qos2_release (struct mqtt_client *client, const struct mqtt_pubrel_param *param) |
| API used by client to request release of QoS2 publish message.
|
|
int | mqtt_publish_qos2_complete (struct mqtt_client *client, const struct mqtt_pubcomp_param *param) |
| API used by client to send acknowledgment on receiving QoS2 publish release message.
|
|
int | mqtt_subscribe (struct mqtt_client *client, const struct mqtt_subscription_list *param) |
| API to request subscription of one or more topics on the connection.
|
|
int | mqtt_unsubscribe (struct mqtt_client *client, const struct mqtt_subscription_list *param) |
| API to request unsubscription of one or more topics on the connection.
|
|
int | mqtt_ping (struct mqtt_client *client) |
| API to send MQTT ping.
|
|
int | mqtt_disconnect (struct mqtt_client *client) |
| API to disconnect MQTT connection.
|
|
int | mqtt_abort (struct mqtt_client *client) |
| API to abort MQTT connection.
|
|
int | mqtt_live (struct mqtt_client *client) |
| This API should be called periodically for the client to be able to keep the connection alive by sending Ping Requests if need be.
|
|
int | mqtt_keepalive_time_left (const struct mqtt_client *client) |
| Helper function to determine when next keep alive message should be sent.
|
|
int | mqtt_input (struct mqtt_client *client) |
| Receive an incoming MQTT packet.
|
|
int | mqtt_read_publish_payload (struct mqtt_client *client, void *buffer, size_t length) |
| Read the payload of the received PUBLISH message.
|
|
int | mqtt_read_publish_payload_blocking (struct mqtt_client *client, void *buffer, size_t length) |
| Blocking version of mqtt_read_publish_payload function.
|
|
int | mqtt_readall_publish_payload (struct mqtt_client *client, uint8_t *buffer, size_t length) |
| Blocking version of mqtt_read_publish_payload function which runs until the required number of bytes are read.
|
|