Is there a way to exclude MQTT v5 as unnecessary?

Hello to everyone.

In an application, with only MQTT version 3.1.1 clients,
is it possible to block the functionality of MQTT version 5 ?

Thanks

Hello,

Business logic is largely protocol-agnostic. There is some branching based on the protocol version, which can’t be ripped out from the code without rewriting it.
Best you can do is to create a custom authentication plugin that checks the protocol version during client connect, and kicks clients using MQTTv5.

Why is it needed, BTW?

Hello dmif.

Sorry for the delay.

The reasoning behind the question is that if we exclude some protocol (such as mqtt v5) as unnecessary, the server’s working environment will become lighter.
If there is no option to issue via configuration, I don’t insist

Thank you very much

2 Likes