|
Contiki 3.x
|
Header file for the Contiki MQTT engine. More...
#include "contiki.h"#include "contiki-net.h"#include "contiki-lib.h"#include "lib/random.h"#include "sys/ctimer.h"#include "sys/etimer.h"#include "net/rpl/rpl.h"#include "net/ip/uip.h"#include "net/ipv6/uip-ds6.h"#include "dev/leds.h"#include "tcp-socket.h"#include "udp-socket.h"#include <stdlib.h>#include <stdio.h>#include <string.h>Go to the source code of this file.
Typedefs | |
| typedef void(* | mqtt_event_callback_t )(struct mqtt_connection *m, mqtt_event_t event, void *data) |
| MQTT event callback function. More... | |
Enumerations | |
| enum | mqtt_event_t |
| MQTT engine events. | |
Functions | |
| mqtt_status_t | mqtt_register (struct mqtt_connection *conn, struct process *app_process, char *client_id, mqtt_event_callback_t event_callback, uint16_t max_segment_size) |
| Initializes the MQTT engine. More... | |
| mqtt_status_t | mqtt_connect (struct mqtt_connection *conn, char *host, uint16_t port, uint16_t keep_alive) |
| Connects to a MQTT broker. More... | |
| void | mqtt_disconnect (struct mqtt_connection *conn) |
| Disconnects from a MQTT broker. More... | |
| mqtt_status_t | mqtt_subscribe (struct mqtt_connection *conn, uint16_t *mid, char *topic, mqtt_qos_level_t qos_level) |
| Subscribes to a MQTT topic. More... | |
| mqtt_status_t | mqtt_unsubscribe (struct mqtt_connection *conn, uint16_t *mid, char *topic) |
| Unsubscribes from a MQTT topic. More... | |
| mqtt_status_t | mqtt_publish (struct mqtt_connection *conn, uint16_t *mid, char *topic, uint8_t *payload, uint32_t payload_size, mqtt_qos_level_t qos_level, mqtt_retain_t retain) |
| Publish to a MQTT topic. More... | |
| void | mqtt_set_username_password (struct mqtt_connection *conn, char *username, char *password) |
| Set the user name and password for a MQTT client. More... | |
| void | mqtt_set_last_will (struct mqtt_connection *conn, char *topic, char *message, mqtt_qos_level_t qos) |
| Set the last will topic and message for a MQTT client. More... | |
Header file for the Contiki MQTT engine.
Definition in file mqtt.h.
1.8.6