MQTT C Client Libraries Internals
Data Fields
Clients Struct Reference

Data related to one client. More...

#include <Clients.h>

Collaboration diagram for Clients:
Collaboration graph
[legend]

Data Fields

char * clientID
 the string id of the client
 
const char * username
 MQTT v3.1 user name.
 
int passwordlen
 MQTT password length.
 
const void * password
 MQTT v3.1 binary password.
 
unsigned int cleansession: 1
 MQTT V3 clean session flag.
 
unsigned int cleanstart: 1
 MQTT V5 clean start flag.
 
unsigned int connected: 1
 whether it is currently connected
 
unsigned int good: 1
 if we have an error on the socket we turn this off
 
unsigned int ping_outstanding: 1
 
unsigned int ping_due: 1
 we couldn't send a ping so we should send one when we can
 
signed int connect_state: 4
 
START_TIME_TYPE ping_due_time
 the time at which the ping should have been sent (ping_due)
 
networkHandles net
 network info for this client
 
int msgID
 the MQTT message id
 
int keepAliveInterval
 the MQTT keep alive interval
 
int retryInterval
 
int maxInflightMessages
 the max number of inflight outbound messages we allow
 
willMessageswill
 the MQTT will message, if any
 
ListinboundMsgs
 inbound in flight messages
 
ListoutboundMsgs
 outbound in flight messages
 
ListmessageQueue
 inbound complete but undelivered messages
 
unsigned int qentry_seqno
 
void * phandle
 the persistence handle
 
MQTTClient_persistencepersistence
 a persistence implementation
 
MQTTPersistence_beforeWritebeforeWrite
 persistence write callback
 
MQTTPersistence_afterReadafterRead
 persistence read callback
 
void * beforeWrite_context
 context to be used with the persistence beforeWrite callbacks
 
void * afterRead_context
 context to be used with the persistence afterRead callback
 
void * context
 calling context - used when calling disconnect_internal
 
int MQTTVersion
 the version of MQTT being used, 3, 4 or 5
 
int sessionExpiry
 MQTT 5 session expiry.
 
char * httpProxy
 HTTP proxy for websockets.
 
char * httpsProxy
 HTTPS proxy for websockets.
 

Detailed Description

Data related to one client.


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