emqx-sn
emqx-sn
mqtt.sn.port
| Type | Default |
|---|---|
| string | 1884 |
说明
emqx_sn 监听的 UDP 端口。
mqtt.sn.advertise_duration
| Type | Default |
|---|---|
| duration | 15s |
说明
ADVERTISE 消息广播间隔,单位:秒。
mqtt.sn.gateway_id
| Type | Default |
|---|---|
| integer | 1 |
说明
ADVERTISE 中的 MQTT-SN 网关 ID。
mqtt.sn.enable_stats
| Type | Optional Value | Default |
|---|---|---|
| enum | on, off |
off |
说明
是否开启客户端状态统计信息。
mqtt.sn.enable_qos3
| Type | Optional Value | Default |
|---|---|---|
| enum | on, off |
off |
说明
是否处理 QoS 为 -1 的消息。
mqtt.sn.idle_timeout
| Type | Default |
|---|---|
| duration | 30s |
说明
建立后的发呆时间,如果这段时间内未收到任何报文,则会关闭该连接。
mqtt.sn.predefined.topic.0
| Type | Default |
|---|---|
| string | reserved |
说明
预定义的 Topic 与 TopicId 映射。Id 为 0 的主题是保留项,固定为 reserved。例如,预定义主题 foo/bar 的 Id 为 1:
mqtt.sn.predefined.topic.1 = foo/bar
mqtt.sn.username
| Type | Default |
|---|---|
| string | mqtt_sn_user |
说明
emqx_sn 连接至 EMQ X 的用户名。
mqtt.sn.password
| Type | Default |
|---|---|
| string | abc |
说明
emqx_sn 连接至 EMQ X 的密码。
