Settings

MqttClient settings

Members

Variables

alpn
string[] alpn;

list of ALPN extension protocols

cleanSession
bool cleanSession;

clean client and server session state on connect

clientId
string clientId;

Client Id to identify within message broker (must be unique)

host
string host;

message broker address

inflightQueueSize
size_t inflightQueueSize;

maximal number of packets which can be processed at the same time

keepAlive
ushort keepAlive;

The Keep Alive is a time interval s to send control packets to server. It's used to determine that the network and broker are working. If set to 0, no control packets are send automatically (default).

onConnAck
Callback!ConnAck onConnAck;
Undocumented in source.
onDisconnect
Callback!() onDisconnect;
Undocumented in source.
onPingResp
Callback!PingResp onPingResp;
Undocumented in source.
onPubAck
Callback!PubAck onPubAck;
Undocumented in source.
onPubComp
Callback!PubComp onPubComp;
Undocumented in source.
onPubRec
Callback!PubRec onPubRec;
Undocumented in source.
onPubRel
Callback!PubRel onPubRel;
Undocumented in source.
onPublish
Callback!Publish onPublish;
Undocumented in source.
onSubAck
Callback!SubAck onSubAck;
Undocumented in source.
onUnsubAck
Callback!UnsubAck onUnsubAck;
Undocumented in source.
password
string password;

user password

peerValidationMode
TLSPeerValidationMode peerValidationMode;

mode for verifying peer certificates

port
ushort port;

message broker port

reconnect
Duration reconnect;

Time interval s in which client tries to reconnect to broker if disconnected. If set to 0, auto reconnect is disabled (default)

retryAttempts
int retryAttempts;

how many times will client try to resend QoS1 and QoS2 messages

retryDelay
int retryDelay;

retry interval to resend publish QoS 1 and 2 messages ms

sendQueueSize
size_t sendQueueSize;

maximal number of packets stored in queue to send

trustedCertificateFile
string trustedCertificateFile;

list of trusted certificates for verifying peer certificates

useSsl
bool useSsl;

use SSL/TLS for the connection

userName
string userName;

optional user name to login with

Meta