Tizen RT Public API  v1.1 D4
mqtt_api.h File Reference

APIs for MQTT Client(Subscriber/Publisher) More...

#include <tinyara/config.h>
Include dependency graph for mqtt_api.h:

Go to the source code of this file.

Data Structures

struct  _mqtt_msg_s
 Structure of MQTT message. More...
 
struct  _mqtt_tls_param_s
 Structure of MQTT security information. More...
 
struct  _mqtt_client_config_s
 Structure of MQTT client configuration. More...
 
struct  _mqtt_client_s
 Structure of MQTT client object. More...
 

Enumerations

enum  mqtt_client_state_e
 This enumeration describes the state of the MQTT client. More...
 
enum  mqtt_connection_result_e
 This enumeration describes the state of the MQTT connection result. More...
 

Functions

mqtt_client_tmqtt_init_client (mqtt_client_config_t *config)
 mqtt_init_client() initializes MQTT client More...
 
int mqtt_deinit_client (mqtt_client_t *handle)
 mqtt_deinit_client() de-initializes MQTT client More...
 
int mqtt_connect (mqtt_client_t *handle, char *addr, int port, int keep_alive)
 mqtt_connect() connects to a MQTT broker More...
 
int mqtt_disconnect (mqtt_client_t *handle)
 mqtt_disconnect() disconnects from a MQTT broker More...
 
int mqtt_publish (mqtt_client_t *handle, char *topic, char *data, uint32_t data_len, uint8_t qos, uint8_t retain)
 mqtt_publish() pusblishes message to a MQTT broker on the given topic More...
 
int mqtt_subscribe (mqtt_client_t *handle, char *topic, uint8_t qos)
 mqtt_subscribe() subscribes for the specified topic with MQTT broker More...
 
int mqtt_unsubscribe (mqtt_client_t *handle, char *topic)
 mqtt_unsubscribe() unsubscribes from the specified topic More...
 

Detailed Description

APIs for MQTT Client(Subscriber/Publisher)

Definition in file mqtt_api.h.