emqx-lwm2m (opens new window)

emqx-lwm2m emqx-lwm2m (opens new window) - 图1 (opens new window)

lwm2m.port

Type Default
integer 5683
说明

指定 LwM2M 使用的 UDP 端口。

lwm2m.lifetime_min

Type Default
duration 1s
说明

指定允许的 LwM2M lifetime 最小值,单位: 秒。

lwm2m.lifetime_max

Type Default
duration 86400s
说明

指定允许的 LwM2M lifetime 最大值,单位: 秒。

lwm2m.qmode_time_window

Type Default
integer 22
说明

指定 LwM2M Q 模式使用的窗口大小,单位: 秒。

这个窗口期之内可以下发执行给 Q 模式的设备,过了窗口期则缓存下行数据。

lwm2m.lb

Type Optional Value Default
enum coaproxy, undefined undefined
说明

设置是否使用 coaproxy。设置为 undefined 则不使用 coaproxy。

lwm2m.auto_observe

Type Optional Value Default
enum on, off off
说明

在设备注册后是否自动下发 observe 命令。

lwm2m.mountpoint

Type Default
string lwm2m/%e/
说明

设置 LwM2M 主题的挂载点。支持以下通配符:

  • ‘%e’: Endpoint Name
  • ‘%a’: IP Address

lwm2m.topics.command

Type Default
string dn/#
说明

设备注册完成后,需要订阅的下行命令主题。

lwm2m.topics.response

Type Default
string up/resp
说明

设备的上行回复需要发布到哪个主题。

lwm2m.topics.notify

Type Default
string up/notify
说明

设备的上行报告消息 (notify) 需要发布到哪个主题。

lwm2m.topics.register

Type Default
string up/resp
说明

设备的上行注册消息 (register) 需要发布到哪个主题。

lwm2m.topics.update

Type Default
string up/resp
说明

设备的上行更新消息 (update) 需要发布到哪个主题。

lwm2m.opts.buffer

Type Default
bytesize 1024KB
说明

UDP 调优参数,指定 UDP 用户态缓存大小。

lwm2m.opts.recbuf

Type Default
bytesize 1024KB
说明

UDP 调优参数,指定 UDP 接收缓存大小。

lwm2m.opts.sndbuf

Type Default
bytesize 1024KB
说明

UDP 调优参数,指定 UDP 发送缓存大小。

lwm2m.opts.read_packets

Type Default
integer 20
说明

UDP 调优参数,指定每次从 UDP socket 读取多少个报文。

lwm2m.certfile

Type Default
string etc/certs/cert.pem
说明

指定 UDP DTLS 使用的证书文件。

lwm2m.keyfile

Type Default
string etc/certs/key.pem
说明

指定 UDP DTLS 使用的私钥文件。

lwm2m.xml_dir

Type Default
dir etc/lwm2m_xml
说明

指定 LwM2M Object 定义文件存放的目录。