OptionalcapacityBound on outstanding client requests. Defaults to 64 when omitted.
The MQTT client identifier presented to the broker.
The broker hostname or IP address.
OptionalkeepKeep-alive interval in seconds. Defaults to 30 when omitted.
OptionalmaxThe largest packet the connection sends or accepts, in bytes. Defaults to 10,240 when omitted. A publish that would be larger is refused and the connection stays up, but a larger packet arriving from the broker ends the connection, so every client that shares a topic needs a limit that fits it.
OptionalpasswordThe password to sign in with, which needs a username. It travels in the clear unless the connection uses MqttClientOptions.tls.
The broker TCP port, conventionally 1883 for plaintext MQTT.
OptionalqosDefault quality of service. Defaults to AtLeastOnce when omitted.
OptionaltlsTLS settings; a connection with them is secured, conventionally on port 8883.
OptionalusernameThe name to sign in to the broker with.
OptionalwillA message the broker publishes if the connection ends without a goodbye.
Connection settings for an MqttClient.