coreMQTT v2.1.0
MQTT 3.1.1 Client Library
MQTTContext_t Struct Reference

A struct representing an MQTT connection. More...

#include <core_mqtt.h>

Data Fields

 State engine records for outgoing publishes.
 State engine records for incoming publishes.
size_t outgoingPublishRecordMaxCount
 The maximum number of outgoing publish records.
size_t incomingPublishRecordMaxCount
 The maximum number of incoming publish records.
TransportInterface_t transportInterface
 The transport interface used by the MQTT connection.
MQTTFixedBuffer_t networkBuffer
 The buffer used in sending and receiving packets from the network.
uint16_t nextPacketId
 The next available ID for outgoing MQTT packets.
MQTTConnectionStatus_t connectStatus
 Whether the context currently has a connection to the broker.
MQTTGetCurrentTimeFunc_t getTime
 Function used to get millisecond timestamps.
MQTTEventCallback_t appCallback
 Callback function used to give deserialized MQTT packets to the application.
uint32_t lastPacketTxTime
 Timestamp of the last packet sent by the library.
uint32_t lastPacketRxTime
 Timestamp of the last packet received by the library.
bool controlPacketSent
 Whether the library sent a packet during a call of MQTT_ProcessLoop or MQTT_ReceiveLoop.
size_t index
 Index to keep track of the number of bytes received in network buffer.
uint16_t keepAliveIntervalSec
 Keep Alive interval.
uint32_t pingReqSendTimeMs
 Timestamp of the last sent PINGREQ.
bool waitingForPingResp
 If the library is currently awaiting a PINGRESP.

Detailed Description

A struct representing an MQTT connection.

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