_MqttClientContext Struct Reference

MQTT client context. More...

#include <mqtt_client.h>

Data Fields

MqttClientSettings settings
 MQTT client settings. More...
 
MqttClientCallbacks callbacks
 MQTT client callback functions. More...
 
MqttClientState state
 MQTT client state. More...
 
NetInterfaceinterface
 Underlying network interface. More...
 
Socketsocket
 Underlying TCP socket. More...
 
TlsContexttlsContext
 TLS context. More...
 
TlsSessionState tlsSession
 TLS session state. More...
 
WebSocketwebSocket
 Underlying WebSocket. More...
 
systime_t startTime
 Start time. More...
 
systime_t keepAliveTimestamp
 Timestamp used to manage keep-alive. More...
 
uint8_t buffer [MQTT_CLIENT_BUFFER_SIZE]
 Internal buffer. More...
 
uint8_t * packet
 Pointer to the incoming/outgoing MQTT packet. More...
 
size_t packetPos
 Current position. More...
 
size_t packetLen
 Length of the entire MQTT packet. More...
 
MqttPacketType packetType
 Control packet type. More...
 
uint16_t packetId
 Packet identifier. More...
 
size_t remainingLen
 Length of the variable header and payload. More...
 

Detailed Description

MQTT client context.

Definition at line 319 of file mqtt_client.h.

Field Documentation

◆ buffer

uint8_t buffer[MQTT_CLIENT_BUFFER_SIZE]

Internal buffer.

Definition at line 335 of file mqtt_client.h.

◆ callbacks

MQTT client callback functions.

Definition at line 322 of file mqtt_client.h.

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 324 of file mqtt_client.h.

◆ keepAliveTimestamp

systime_t keepAliveTimestamp

Timestamp used to manage keep-alive.

Definition at line 334 of file mqtt_client.h.

◆ packet

uint8_t* packet

Pointer to the incoming/outgoing MQTT packet.

Definition at line 336 of file mqtt_client.h.

◆ packetId

uint16_t packetId

Packet identifier.

Definition at line 340 of file mqtt_client.h.

◆ packetLen

size_t packetLen

Length of the entire MQTT packet.

Definition at line 338 of file mqtt_client.h.

◆ packetPos

size_t packetPos

Current position.

Definition at line 337 of file mqtt_client.h.

◆ packetType

MqttPacketType packetType

Control packet type.

Definition at line 339 of file mqtt_client.h.

◆ remainingLen

size_t remainingLen

Length of the variable header and payload.

Definition at line 341 of file mqtt_client.h.

◆ settings

MQTT client settings.

Definition at line 321 of file mqtt_client.h.

◆ socket

Socket* socket

Underlying TCP socket.

Definition at line 325 of file mqtt_client.h.

◆ startTime

systime_t startTime

Start time.

Definition at line 333 of file mqtt_client.h.

◆ state

MQTT client state.

Definition at line 323 of file mqtt_client.h.

◆ tlsContext

TlsContext* tlsContext

TLS context.

Definition at line 327 of file mqtt_client.h.

◆ tlsSession

TlsSessionState tlsSession

TLS session state.

Definition at line 328 of file mqtt_client.h.

◆ webSocket

WebSocket* webSocket

Underlying WebSocket.

Definition at line 331 of file mqtt_client.h.


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