MQTT C Client Libraries Internals
Data Fields
Connect Struct Reference

Data for a connect packet. More...

#include <MQTTPacket.h>

Collaboration diagram for Connect:
Collaboration graph
[legend]

Data Fields

Header header
 MQTT header byte.
 
union {
   unsigned char   all
 all connect flags
 
   struct {
      int   __pad0__: 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: