Skip to content

Add support for MQTT 3.1.1

Compare
Choose a tag to compare
@Namoshek Namoshek released this 08 May 13:32
· 40 commits to master since this release
fcd560c

In #90, support for MQTT 3.1.1 has been added a few months ago. Since the implementation has not received any negative feedback, it seems to work as expected and is hereby released.

There MQTT 3.1.1 protocol can be used by passing 3.1.1 as fourth parameter to the constructor, e.g. using the provided constant:

$mqtt = new \PhpMqtt\Client\MqttClient($server, $port, $clientId, \PhpMqtt\Client\MqttClient::MQTT_3_1_1);