MQTT C Client Libraries Internals: Connect Struct Reference

| MQTT C Client Libraries Internals

Loading...
Searching...
No Matches
Data Fields
Connect Struct Reference

Data for a connect packet. More...

`#include <MQTTPacket.h>`

Collaboration diagram for Connect:
[legend]

## Data Fields
Header | header
| MQTT header byte.
union { |
unsigned char all |
| all connect flags
struct { |
int : 1 |
| unused
bit cleanstart: 1 |
| cleansession flag
bit will: 1 |
| will flag
unsigned int willQoS: 2 |
| will QoS value
bit willRetain: 1 |
| will retain setting
bit password: 1 |
| 3.1 password
bit 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:

- MQTTPacket.h