How to switch between MQTT protocol versions.

Supported MQTT Versions

Best MQTT supports both v3.1.1 and v5 versions of the MQTT protocol.

How to switch between MQTT versions

ConnectionOptions has a ProtocolVersion property that can be set directly or through using ConnectionOptionsBuilder:

var options = new ConnectionOptionsBuilder()
        .WithTCP("", 1883)
var client = new MQTTClient(options);