[mqtt] Add missing broker connection configuration parameters (#13303)

Allows to configure the following broker connection configuration parameters:

* Protocol: TCP (default), WEBSOCKETS
* MQTT Version: V3 (default), V5
* Hostname Validation: true (default), false

The defaults are chosen to remain backwards compatible.

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2022-08-26 08:53:00 +02:00
committed by GitHub
parent c21d3061ec
commit cfa20db227
4 changed files with 44 additions and 2 deletions

View File

@@ -28,6 +28,9 @@ Required configuration parameters are:
Additionally the following parameters can be set:
* __hostnameValidated__: Validate hostname from certificate against server hostname for secure connection. Defaults to true.
* __protocol__: The protocol used for communicating with the broker (TCP, WEBSOCKETS). Defaults to TCP.
* __mqttVersion__: The MQTT version used for communicating with the broker (V3, V5). Defaults to V3.
* __qos__: Quality of Service. Can be 0, 1 or 2. Please read the MQTT specification for details. Defaults to 0.
* __clientID__: Use a fixed client ID. Defaults to empty which means a user ID is generated for this connection.