api |
function |
connect |
name |
description |
type |
clientID |
the client ID to use when connecting to the server |
const char[] |
|
name |
optionalGroup |
params |
Credentials |
true |
name |
description |
type |
username |
the username to use. If <code>NULL</code>, no username or password is used |
const char[] |
|
name |
description |
type |
password |
the password to use. If <code>NULL</code>, no password is used |
const char[] |
|
|
|
name |
optionalGroup |
params |
Will |
true |
name |
description |
type |
willTopic |
the topic to be used by the will message |
const char[] |
|
name |
description |
type |
willQoS |
the quality of service to be used by the will message |
int: 0,1 or 2 |
|
name |
description |
type |
willRetain |
whether the will should be published with the retain flag |
boolean |
|
name |
description |
type |
willMessage |
the payload of the will message |
const char[] |
|
|
|
name |
description |
type |
optional |
cleanSession |
whether to connect clean-session or not |
boolean |
true |
|
|
type |
values |
boolean |
value |
description |
false |
connection failed |
|
value |
description |
true |
connection succeeded |
|
|
|