Fix invalid return code for legacy 3.x MQTT clients
This commit is contained in:
parent
4ec990ca8a
commit
b37a708f40
@ -27,7 +27,6 @@ public class ReturnCodeResolver {
|
||||
if (!MqttVersion.MQTT_5.equals(mqttVersion) && !ReturnCode.SUCCESS.equals(returnCode)) {
|
||||
switch (returnCode) {
|
||||
case BAD_USERNAME_OR_PASSWORD:
|
||||
return MqttConnectReturnCode.CONNECTION_REFUSED_BAD_USER_NAME_OR_PASSWORD;
|
||||
case NOT_AUTHORIZED_5:
|
||||
return MqttConnectReturnCode.CONNECTION_REFUSED_NOT_AUTHORIZED;
|
||||
case SERVER_UNAVAILABLE_5:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user