MQTT C Client Libraries Internals
Loading...
Searching...
No Matches
Connect Struct Reference

Data for a connect packet. More...

#include <MQTTPacket.h>

Collaboration diagram for Connect:

Data Fields

Header header
 MQTT header byte.
union { 
   unsigned char   all 
 all connect flags
   struct { 
      int   : 1 
 unused
      bool   cleanstart: 1 
 cleansession flag
      bool   will: 1 
 will flag
      unsigned int   willQoS: 2 
 will QoS value
      bool   willRetain: 1 
 will retain setting
      bool   password: 1 
 3.1 password
      bool   username: 1 
 3.1 user name
   }   bits
flags
 connect flags byte
char * Protocol
 MQTT protocol name.
char * clientID
 string client id
char * willTopic
 will topic
char * willMsg
 will payload
int keepAliveTimer
 keepalive timeout value in seconds
unsigned char version
 MQTT version number.

Detailed Description

Data for a connect packet.


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