Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sol_mqtt_message Struct Reference

MQTT Message. More...

#include <sol-mqtt.h>

Data Fields

uint16_t api_version
 Should always be set to SOL_MQTT_MESSAGE_API_VERSION. More...
 
int id
 The message Id. More...
 
struct sol_bufferpayload
 The message payload. More...
 
sol_mqtt_qos qos
 The message Quality of service. More...
 
bool retain
 If true, the message will be retained by the broker. More...
 
char * topic
 The topic which the message was/will be posted to. More...
 

Detailed Description

MQTT Message.

This object is the abstraction of a MQTT message and is the base for publishing and receiving data to/from the broker.

Examples:
/src/samples/iio+network/iio-gyroscope-console-and-mqtt-publish.c, /src/samples/mqtt/mqtt-publish.c, and /src/samples/mqtt/mqtt-subscribe.c.

Field Documentation

uint16_t sol_mqtt_message::api_version

Should always be set to SOL_MQTT_MESSAGE_API_VERSION.

Examples:
/src/samples/iio+network/iio-gyroscope-console-and-mqtt-publish.c, and /src/samples/mqtt/mqtt-publish.c.

Referenced by iio_gyroscope_reader_cb(), and main().

int sol_mqtt_message::id

The message Id.

struct sol_buffer* sol_mqtt_message::payload
sol_mqtt_qos sol_mqtt_message::qos

The message Quality of service.

bool sol_mqtt_message::retain

If true, the message will be retained by the broker.

char* sol_mqtt_message::topic

The topic which the message was/will be posted to.

Examples:
/src/samples/mqtt/mqtt-publish.c.

Referenced by main().


The documentation for this struct was generated from the following file: