mqtt
mqtt
flapping_detect_policy
| Type | Default |
|---|---|
| string | 30, 1m, 5m |
说明
指定 Flapping 检查策略。
格式:<threshold>,<duration>,<banned>。
例如,30, 1m, 5m,它表示如果客户端在 1 分钟内断开连接 30 次,那么在后续 5 分钟内禁止登录。
mqtt.max_packet_size
| Type | Default |
|---|---|
| bytesize | 1MB |
说明
允许的 MQTT 报文最大长度。
mqtt.max_clientid_len
| Type | Default |
|---|---|
| integer | 65535 |
说明
允许的 Client ID 串的最大长度。
mqtt.max_topic_levels
| Type | Default |
|---|---|
| integer | 0 |
说明
允许客户端订阅主题的最大层级。0 表示不限制。
mqtt.max_qos_allowed
| Type | Optional Value | Default |
|---|---|---|
| enum | 0, 1, 2 |
2 |
说明
允许客户端发布的最大 QoS 等级。
mqtt.max_topic_alias
| Type | Default |
|---|---|
| integer | 65535 |
说明
允许最大的主题别名数。0 表示不支持主题别名。
mqtt.retain_available
| Type | Optional Value | Default |
|---|---|---|
| enum | true, false |
true |
说明
是否支持 Retain 消息。
mqtt.wildcard_subscription
| Type | Optional Value | Default |
|---|---|---|
| enum | true, false |
true |
说明
是否支持订阅通配主题。
mqtt.shared_subscription
| Type | Optional Value | Default |
|---|---|---|
| enum | true, false |
true |
说明
是否支持共享订阅。
mqtt.ignore_loop_deliver
| Type | Optional Value | Default |
|---|---|---|
| enum | true, false |
false |
说明
是否忽略自己发送的消息。如果忽略,则表明 EMQ X 不会向消息的发送端投递此消息。
mqtt.strict_mode
| Type | Optional Value | Default |
|---|---|---|
| enum | true, false |
false |
说明
是否开启严格检查模式。严格检查模式会更细致的检查 MQTT 报文的正确性。
