Sergey Pastor / 1

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

_MqttClientContext Struct Reference

_MqttClientContext Struct Reference

MQTT client context. More...

#include <mqtt_client.h>

Data Fields

MqttClientSettings settings
 MQTT client settings.
MqttClientCallbacks callbacks
 MQTT client callback functions.
MqttClientState state
 MQTT client state.
systime_t keepAliveTimestamp
 Timestamp used to manage keep-alive.
systime_t pingTimestamp
 Timestamp used to measure round-trip time.
NetInterface * interface
 Underlying network interface.
Socket * socket
 Underlying TCP socket.
TlsContext * tlsContext
 SSL context.
TlsSession tlsSession
 SSL session.
WebSocket * webSocket
 Underlying WebSocket.
uint8_t buffer [MQTT_CLIENT_BUFFER_SIZE]
 Internal buffer.
uint8_t * packet
 Pointer to the incoming/outgoing MQTT packet.
size_t packetPos
 Current position.
size_t packetLen
 Length of the entire MQTT packet.
MqttPacketType packetType
 Control packet type.
uint16_t packetId
 Packet identifier.
size_t remainingLen
 Length of the variable header and payload.

Detailed Description

MQTT client context.

Definition at line 308 of file mqtt_client.h.


Field Documentation

uint8_t buffer[MQTT_CLIENT_BUFFER_SIZE]

Internal buffer.

Definition at line 324 of file mqtt_client.h.

MQTT client callback functions.

Definition at line 311 of file mqtt_client.h.

NetInterface* interface

Underlying network interface.

Definition at line 315 of file mqtt_client.h.

systime_t keepAliveTimestamp

Timestamp used to manage keep-alive.

Definition at line 313 of file mqtt_client.h.

uint8_t* packet

Pointer to the incoming/outgoing MQTT packet.

Definition at line 325 of file mqtt_client.h.

uint16_t packetId

Packet identifier.

Definition at line 329 of file mqtt_client.h.

size_t packetLen

Length of the entire MQTT packet.

Definition at line 327 of file mqtt_client.h.

size_t packetPos

Current position.

Definition at line 326 of file mqtt_client.h.

Control packet type.

Definition at line 328 of file mqtt_client.h.

systime_t pingTimestamp

Timestamp used to measure round-trip time.

Definition at line 314 of file mqtt_client.h.

size_t remainingLen

Length of the variable header and payload.

Definition at line 330 of file mqtt_client.h.

MQTT client settings.

Definition at line 310 of file mqtt_client.h.

Socket* socket

Underlying TCP socket.

Definition at line 316 of file mqtt_client.h.

MQTT client state.

Definition at line 312 of file mqtt_client.h.

TlsContext* tlsContext

SSL context.

Definition at line 318 of file mqtt_client.h.

SSL session.

Definition at line 319 of file mqtt_client.h.

WebSocket* webSocket

Underlying WebSocket.

Definition at line 322 of file mqtt_client.h.