MQTT-C: mqtt_queued_message Struct Reference

MQTT-C

Data Fields
mqtt_queued_message Struct Reference
Utilities

A message in a mqtt_message_queue. More...

`#include <mqtt.h>`

## Data Fields
uint8_t * | start
| A pointer to the start of the message.
size_t | size
| The number of bytes in the message.
enum MQTTQueuedMessageState | state
| The state of the message.
mqtt_pal_time_t | time_sent
| The time at which the message was sent.. More...
enum MQTTControlPacketType | control_type
| The control type of the message.
uint16_t | packet_id
| The packet id of the message. More...

## Detailed Description

A message in a mqtt_message_queue.

## Field Documentation

## ◆ packet_id

uint16_t mqtt_queued_message::packet_id

The packet id of the message.

Note
  This field is only used if the associate `control_type` has a `packet_id` field.

## ◆ time_sent

mqtt_pal_time_t mqtt_queued_message::time_sent

The time at which the message was sent..

Note
  A timeout will only occur if the message is in the MQTT_QUEUED_AWAITING_ACK `state`.

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

- include/mqtt.h