MqttDisconnectionCode 常量

MQTT 客户端在与代理断开连接时可以指定的原因代码。
MqttDisconnectionAdministrativeAction
(152) - 由于管理操作,连接已关闭。
MqttDisconnectionConnectionRateExceeded
(159) - 此连接已关闭,因为连接速率过高。
MqttDisconnectionImplementationSpecificError
(131) - 接收的数据包值,但此实现无法对其进行处理。
MqttDisconnectionKeepAliveTimeout
(141) - 连接已关闭,因为在 1.5 倍的持活时间内未收到任何数据包。
MqttDisconnectionMalformedPacket
(129) - 接收的数据包不符合此规范。
MqttDisconnectionMaximumConnectTime
(160) - 已超过为此连接授权的最大连接时间。
MqttDisconnectionMessageRateTooHigh
(150) - 接收的数据速率过高。
MqttDisconnectionNormal
(0) - 正常关闭连接。不发送遗嘱消息。
MqttDisconnectionNotAuthorized
(135) - 请求未获授权。
MqttDisconnectionPacketTooLarge
(149) - 数据包大小大于此客户端或服务器的最大数据包大小。
MqttDisconnectionPayloadFormatInvalid
(153) - 有效负载格式与有效负载格式指示器指定的格式不匹配。
MqttDisconnectionProtocolError
(130) - 接收的数据包异常或出现问题。
MqttDisconnectionQoSNotSupported
(155) - 客户端指定的 QoS 大于 CONNACK 中指定的最大 QoS。
MqttDisconnectionQuotaExceeded
(151) - 已超过实现或管理限制。
MqttDisconnectionReceiveMaximumExceeded
(147) - 客户端或服务器接收的发布数超过接收最大值,因尚未发送 PUBACK 或 PUBCOMP。
MqttDisconnectionRetainNotSupported
(154) - 服务器不支持保留消息。
MqttDisconnectionServerBusy
(137) - 服务器繁忙,无法继续处理来自此客户端的请求。
MqttDisconnectionServerMoved
(157) - 已移动服务器,客户端应永久更改其服务器位置。
MqttDisconnectionServerShuttingDown
(139) - 服务器正在关闭。
MqttDisconnectionSessionTakenOver
(142) - 已连接使用同一客户端 ID 的其他连接,从而导致此连接关闭。
MqttDisconnectionSharedSubscriptionsNotSupported
(158) - 服务器不支持共享订阅。
MqttDisconnectionSubscriptionIdentifiersNotSupported
(161) - 服务器不支持订阅标识符;未接受订阅。
MqttDisconnectionTopicAliasInvalid
(148) - 客户端或服务器接收的 PUBLISH 数据包内含的主题别名大于其在 CONNECT 或 CONNACK 数据包中发送的最大主题别名。
MqttDisconnectionTopicFilterInvalid
(143) - 主题筛选器的格式正确,但此服务器不接受该筛选器。
MqttDisconnectionTopicNameinvalid
(144) - 主题名称的格式正确,但此客户端或服务器不接受该名称。
MqttDisconnectionUnspecifiedError
(128) - 连接已关闭,但发送方不希望透露原因,或者其他原因代码都不适用。
MqttDisconnectionUseAnotherServer
(156) - 客户端应暂时更改其服务器。
MqttDisconnectionWildcardSubscriptionsNotSupported
(162) - 服务器不支持通配符订阅;未接受订阅。
MqttDisconnectionWithWillMessage
(4) - 客户端希望断开连接,但要求服务器也发布其遗嘱消息。
提供反馈
对本文档有问题或反馈吗? 请在这里提交您的反馈
Normal