<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>http://mediawiki.hyhsystem.cn/index.php?action=history&amp;feed=atom&amp;title=Emqx-lwm2m</id>
	<title>Emqx-lwm2m - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://mediawiki.hyhsystem.cn/index.php?action=history&amp;feed=atom&amp;title=Emqx-lwm2m"/>
	<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=Emqx-lwm2m&amp;action=history"/>
	<updated>2026-04-16T11:32:47Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>http://mediawiki.hyhsystem.cn/index.php?title=Emqx-lwm2m&amp;diff=452&amp;oldid=prev</id>
		<title>HEYAHONG：​/* 观察 （信息上报接口-观察/取消观察） */</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=Emqx-lwm2m&amp;diff=452&amp;oldid=prev"/>
		<updated>2023-02-17T05:59:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;观察 （信息上报接口-观察/取消观察）&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年2月17日 (五) 05:59的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l201&quot;&gt;第201行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第201行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;观察 &lt;/del&gt;（信息上报接口-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;观察&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;取消观察） &lt;/del&gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;订阅 &lt;/ins&gt;（信息上报接口-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;订阅&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;取消订阅） &lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|+&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|+&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l219&quot;&gt;第219行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第219行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;此MQTT消息主要用于向LwM2M客户端下发观察&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;取消观察命令。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;此MQTT消息主要用于向LwM2M客户端下发订阅&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;取消订阅命令。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?EndpointName}:字符串，LwM2M客户端名称&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?EndpointName}:字符串，LwM2M客户端名称&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?ReqID}:整数，请求ID，与响应相匹配。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?ReqID}:整数，请求ID，与响应相匹配。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?MsgType}:字符串,消息类型。observe=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;观察，cancel&lt;/del&gt;-observe=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;取消观察&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?MsgType}:字符串,消息类型。observe=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;订阅，cancel&lt;/ins&gt;-observe=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;取消订阅&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?ResourcePath}:字符串，资源路径。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?ResourcePath}:字符串，资源路径。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l247&quot;&gt;第247行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第247行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?EndpointName}:字符串，LwM2M客户端名称&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?EndpointName}:字符串，LwM2M客户端名称&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?MsgType}:字符串,消息类型。observe=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;观察，cancel&lt;/del&gt;-observe=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;取消观察，ack&lt;/del&gt;=空响应。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {?MsgType}:字符串,消息类型。observe=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;订阅，cancel&lt;/ins&gt;-observe=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;取消订阅，ack&lt;/ins&gt;=空响应。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-430:rev-452:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>HEYAHONG</name></author>
	</entry>
	<entry>
		<id>http://mediawiki.hyhsystem.cn/index.php?title=Emqx-lwm2m&amp;diff=430&amp;oldid=prev</id>
		<title>HEYAHONG：​/* 下行命令与上行响应 （设备管理与服务启用接口） */</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=Emqx-lwm2m&amp;diff=430&amp;oldid=prev"/>
		<updated>2022-12-28T04:20:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;下行命令与上行响应 （设备管理与服务启用接口）&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2022年12月28日 (三) 04:20的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l144&quot;&gt;第144行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第144行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** {?ObjectInstanceID}：数值,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;对象句柄ID。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** {?ObjectInstanceID}：数值,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;对象实例ID。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;code&amp;gt;lwm2m/{?EndpointName}/up/resp&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;code&amp;gt;lwm2m/{?EndpointName}/up/resp&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HEYAHONG</name></author>
	</entry>
	<entry>
		<id>http://mediawiki.hyhsystem.cn/index.php?title=Emqx-lwm2m&amp;diff=425&amp;oldid=prev</id>
		<title>HEYAHONG：​/* 说明 */</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=Emqx-lwm2m&amp;diff=425&amp;oldid=prev"/>
		<updated>2022-12-28T01:33:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;说明&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2022年12月28日 (三) 01:33的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;第3行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第3行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 说明 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 说明 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;emqx的[[LwM2M]]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;网关插件。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;emqx的[[LwM2M]]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;网关插件。此插件通常不需要从源代码安装，直接在EMQX的dashboard的插件页面启用emqx_lwm2m(也可使用源代码ReadMe.md中方式命令启用)。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== [[LwM2M]]与[[MQTT]] 的映射 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== [[LwM2M]]与[[MQTT]] 的映射 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HEYAHONG</name></author>
	</entry>
	<entry>
		<id>http://mediawiki.hyhsystem.cn/index.php?title=Emqx-lwm2m&amp;diff=424&amp;oldid=prev</id>
		<title>HEYAHONG：​创建页面，内容为“== 源代码 == https://github.com/emqx/emqx-lwm2m  == 说明 == emqx的LwM2M网关插件。  == LwM2M与MQTT 的映射 == 对与MQTT的应用而言，最主要的部分便是主题(Topic)与负载消息(Payload)。  因此，对于LwM2M网关而言，所有的LwM2M操作均将转换到MQTT的主题与负载消息中。最终用户通过发布MQTT消息下发LwM2M命令、订阅MQTT消息获取LwM2M客户端的上行数据。  注意:下列说明中…”</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=Emqx-lwm2m&amp;diff=424&amp;oldid=prev"/>
		<updated>2022-12-27T04:17:44Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“== 源代码 == https://github.com/emqx/emqx-lwm2m  == 说明 == emqx的&lt;a href=&quot;/index.php/LwM2M&quot; title=&quot;LwM2M&quot;&gt;LwM2M&lt;/a&gt;网关插件。  == &lt;a href=&quot;/index.php/LwM2M&quot; title=&quot;LwM2M&quot;&gt;LwM2M&lt;/a&gt;与&lt;a href=&quot;/index.php/MQTT&quot; title=&quot;MQTT&quot;&gt;MQTT&lt;/a&gt; 的映射 == 对与MQTT的应用而言，最主要的部分便是主题(Topic)与负载消息(Payload)。  因此，对于LwM2M网关而言，所有的LwM2M操作均将转换到MQTT的主题与负载消息中。最终用户通过发布MQTT消息下发LwM2M命令、订阅MQTT消息获取LwM2M客户端的上行数据。  注意:下列说明中…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 源代码 ==&lt;br /&gt;
https://github.com/emqx/emqx-lwm2m&lt;br /&gt;
&lt;br /&gt;
== 说明 ==&lt;br /&gt;
emqx的[[LwM2M]]网关插件。&lt;br /&gt;
&lt;br /&gt;
== [[LwM2M]]与[[MQTT]] 的映射 ==&lt;br /&gt;
对与MQTT的应用而言，最主要的部分便是主题(Topic)与负载消息(Payload)。&lt;br /&gt;
&lt;br /&gt;
因此，对于LwM2M网关而言，所有的LwM2M操作均将转换到MQTT的主题与负载消息中。最终用户通过发布MQTT消息下发LwM2M命令、订阅MQTT消息获取LwM2M客户端的上行数据。&lt;br /&gt;
&lt;br /&gt;
注意:下列说明中，{}中的内容为变量，会根据实际情况变化。&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+MQTT主题&lt;br /&gt;
!主题&lt;br /&gt;
!说明&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;lwm2m/{?EndpointName}/up/resp&amp;lt;/code&amp;gt;&lt;br /&gt;
|用于LwM2M客户端的上行数据,其中&amp;lt;code&amp;gt;{?EndpointName}为LwM2M客户端名称&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;lwm2m/{?EndpointName}/dn&amp;lt;/code&amp;gt;&lt;br /&gt;
|用于向LwM2M客户端发送下行数据,其中&amp;lt;code&amp;gt;{?EndpointName}为LwM2M客户端名称&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;lwm2m/{?EndpiontName}/up/notify&amp;lt;/code&amp;gt;&lt;br /&gt;
|用于LwM2M客户端的通知数据,其中&amp;lt;code&amp;gt;{?EndpointName}为LwM2M客户端名称&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
LwM2M网关转换的MQTT消息的负载消息部分通常采用Json格式。&lt;br /&gt;
&lt;br /&gt;
=== 注册/更新 （LwM2M客户端注册接口） ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
MQTT消息&lt;br /&gt;
!主题&lt;br /&gt;
!负载消息&lt;br /&gt;
!说明&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;lwm2m/{?EndpointName}/up/resp&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;msgType&amp;quot;: {?MsgType},&lt;br /&gt;
    &amp;quot;data&amp;quot;: {&lt;br /&gt;
        &amp;quot;ep&amp;quot;: {?EndpointName},&lt;br /&gt;
        &amp;quot;lt&amp;quot;: {?LifeTime},&lt;br /&gt;
        &amp;quot;sms&amp;quot;: {?MSISDN},&lt;br /&gt;
        &amp;quot;lwm2m&amp;quot;: {?Lwm2mVersion},&lt;br /&gt;
        &amp;quot;b&amp;quot;: {?Binding},&lt;br /&gt;
        &amp;quot;alternatePath&amp;quot;: {?AlternatePath},&lt;br /&gt;
        &amp;quot;objectList&amp;quot;: {?ObjectList}&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* {?EndpointName}:字符串，LwM2M客户端名称&lt;br /&gt;
* {?MsgType}:字符串,消息类型。register=注册，update=更新&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 下行命令与上行响应 （设备管理与服务启用接口） ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+MQTT消息&lt;br /&gt;
!主题&lt;br /&gt;
!负载消息&lt;br /&gt;
!说明&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;lwm2m/{?EndpointName}/dn&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;reqID&amp;quot;: {?ReqID},&lt;br /&gt;
    &amp;quot;msgType&amp;quot;: {?MsgType},&lt;br /&gt;
    &amp;quot;data&amp;quot;: {?Data}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|此MQTT消息主要用于向LwM2M客户端下发命令。&lt;br /&gt;
&lt;br /&gt;
* {?EndpointName}:字符串，LwM2M客户端名称&lt;br /&gt;
* {?ReqID}:整数，请求ID，与响应相匹配。&lt;br /&gt;
* {?MsgType}:字符串，消息类型。read=读，discover=发现，write=写，write-attr=写属性，execute=执行，create=创建，delete=删除。&lt;br /&gt;
* {?Data}:Json对象,具体内容取决与消息类型。&lt;br /&gt;
** 当消息类型为read或discover时&amp;#039;&amp;#039;&amp;#039;。&amp;#039;&amp;#039;&amp;#039;&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;path&amp;quot;: {?ResourcePath}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** {?ResourcePath}:字符串,资源路径。如:&amp;quot;3/0&amp;quot;, &amp;quot;/3/0/0&amp;quot;, &amp;quot;/3/0/6/0&amp;quot;&lt;br /&gt;
** 当消息类型为write（写单次）时。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;path&amp;quot;: {?ResourcePath},&lt;br /&gt;
    &amp;quot;type&amp;quot;: {?ValueType},&lt;br /&gt;
    &amp;quot;value&amp;quot;: {?Value}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** {?ValueType}:字符串，值类型。可为下列值之一:&amp;quot;Time&amp;quot;, &amp;quot;String&amp;quot;, &amp;quot;Integer&amp;quot;, &amp;quot;Float&amp;quot;, &amp;quot;Boolean&amp;quot;, &amp;quot;Opaque&amp;quot;, &amp;quot;Objlnk&amp;quot;。&lt;br /&gt;
*** {?Value}:值，取决于值类型。&lt;br /&gt;
** 当消息类型为write（批量写）时。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;basePath&amp;quot;: {?BasePath},&lt;br /&gt;
    &amp;quot;content&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;path&amp;quot;: {?ResourcePath},&lt;br /&gt;
            &amp;quot;type&amp;quot;: {?ValueType},&lt;br /&gt;
            &amp;quot;value&amp;quot;: {?Value}&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** 最终路径是basePath与path的结合。content为json数组。&lt;br /&gt;
** 当消息类型为write-attr时。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;path&amp;quot;: {?ResourcePath},&lt;br /&gt;
    &amp;quot;pmin&amp;quot;: {?PeriodMin},&lt;br /&gt;
    &amp;quot;pmax&amp;quot;: {?PeriodMax},&lt;br /&gt;
    &amp;quot;gt&amp;quot;: {?GreaterThan},&lt;br /&gt;
    &amp;quot;lt&amp;quot;: {?LessThan},&lt;br /&gt;
    &amp;quot;st&amp;quot;: {?Step}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** {?PeriodMin}:数值，LwM2M通知类属性-最小间隔。&lt;br /&gt;
*** {?PeriodMax}:数值，LwM2M通知类属性-最大间隔。&lt;br /&gt;
*** {?GreaterThan}:数值，LwM2M通知类属性-大于。&lt;br /&gt;
*** {?LessThan}:数值，LwM2M通知类属性-小于。&lt;br /&gt;
*** {?Step}:数值，LwM2M通知类属性-步进。&lt;br /&gt;
** 当消息类型为execute时。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;path&amp;quot;: {?ResourcePath},&lt;br /&gt;
    &amp;quot;args&amp;quot;: {?Arguments}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** {?Arguments}:字符串，LwM2M执行参数。&lt;br /&gt;
** 当消息类型为create时。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;basePath&amp;quot;: &amp;quot;/{?ObjectID}&amp;quot;,&lt;br /&gt;
    &amp;quot;content&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;path&amp;quot;: {?ResourcePath},&lt;br /&gt;
            &amp;quot;type&amp;quot;: {?ValueType},&lt;br /&gt;
            &amp;quot;value&amp;quot;: {?Value}&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** {?ObjectID}:数值，对象ID。&lt;br /&gt;
** 当消息类型为delete时。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;path&amp;quot;: &amp;quot;{?ObjectID}/{?ObjectInstanceID}&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** {?ObjectInstanceID}：数值,对象句柄ID。&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;lwm2m/{?EndpointName}/up/resp&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;reqID&amp;quot;: {?ReqID},&lt;br /&gt;
    &amp;quot;imei&amp;quot;: {?IMEI},&lt;br /&gt;
    &amp;quot;imsi&amp;quot;: {?IMSI},&lt;br /&gt;
    &amp;quot;msgType&amp;quot;: {?MsgType},&lt;br /&gt;
    &amp;quot;data&amp;quot;: {?Data}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|此MQTT消息主要用于LwM2M客户端的响应数据。&lt;br /&gt;
&lt;br /&gt;
* {?EndpointName}:字符串，LwM2M客户端名称&lt;br /&gt;
* {?MsgType}:字符串,消息类型。read=读，discover=发现，write=写，write-attr=写属性，execute=执行，create=创建，delete=删除，ack=空响应。&lt;br /&gt;
* {?Data}:Json对象，取决于消息类型。&lt;br /&gt;
** 当消息类型为 write, write-attr, execute, create, delete或 read(当无内容时)时。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
      &amp;quot;code&amp;quot;: {?StatusCode},&lt;br /&gt;
      &amp;quot;codeMsg&amp;quot;: {?CodeMsg},&lt;br /&gt;
      &amp;quot;reqPath&amp;quot;: {?RequestPath}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** {?StatusCode}:字符串,状态码。如 &amp;quot;2.01&amp;quot;, &amp;quot;4.00&amp;quot;等&lt;br /&gt;
*** {?CodeMsg}:字符串,响应消息。如&amp;quot;content&amp;quot;, &amp;quot;bad_request&amp;quot;等&lt;br /&gt;
*** {?RequestPath}：字符串，资源路径。&lt;br /&gt;
** 当消息类型为discover时。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;code&amp;quot;: {?StatusCode},&lt;br /&gt;
    &amp;quot;codeMsg&amp;quot;: {?CodeMsg},&lt;br /&gt;
    &amp;quot;reqPath&amp;quot;: {?RequestPath},&lt;br /&gt;
    &amp;quot;content&amp;quot;: [&lt;br /&gt;
        {?Link},&lt;br /&gt;
        ...&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** {?Link}:字符串，Link格式。如&amp;lt;code&amp;gt;&amp;quot;&amp;lt;/3&amp;gt;&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;&amp;lt;3/0/1&amp;gt;;dim=8&amp;quot;等&amp;lt;/code&amp;gt;&lt;br /&gt;
** 当消息类型为read(有响应内容)时。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;code&amp;quot;: {?StatusCode},&lt;br /&gt;
    &amp;quot;codeMsg&amp;quot;: {?CodeMsg},&lt;br /&gt;
    &amp;quot;content&amp;quot;: {?Content}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*** {?Content}:json对象数组。&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
    {&lt;br /&gt;
        &amp;quot;path&amp;quot;: {?ResourcePath},&lt;br /&gt;
        &amp;quot;value&amp;quot;: {?Value}&lt;br /&gt;
    }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
** 当消息类型为ack时，无data字段。&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 观察 （信息上报接口-观察/取消观察） ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
MQTT消息&lt;br /&gt;
!主题&lt;br /&gt;
!负载消息&lt;br /&gt;
!说明&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;lwm2m/{?EndpointName}/dn&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;reqID&amp;quot;: {?ReqID},&lt;br /&gt;
    &amp;quot;msgType&amp;quot;: {?MsgType},&lt;br /&gt;
    &amp;quot;data&amp;quot;: {&lt;br /&gt;
        &amp;quot;path&amp;quot;: {?ResourcePath}&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|此MQTT消息主要用于向LwM2M客户端下发观察/取消观察命令。&lt;br /&gt;
&lt;br /&gt;
* {?EndpointName}:字符串，LwM2M客户端名称&lt;br /&gt;
* {?ReqID}:整数，请求ID，与响应相匹配。&lt;br /&gt;
* {?MsgType}:字符串,消息类型。observe=观察，cancel-observe=取消观察&lt;br /&gt;
* {?ResourcePath}:字符串，资源路径。&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;lwm2m/{?EndpointName}/up/resp&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;reqID&amp;quot;: {?ReqID},&lt;br /&gt;
    &amp;quot;msgType&amp;quot;: {?MsgType},&lt;br /&gt;
    &amp;quot;data&amp;quot;: {&lt;br /&gt;
        &amp;quot;code&amp;quot;: {?StatusCode},&lt;br /&gt;
        &amp;quot;codeMsg&amp;quot;: {?CodeMsg},&lt;br /&gt;
        &amp;quot;reqPath&amp;quot;: {?RequestPath},&lt;br /&gt;
        &amp;quot;content&amp;quot;: [&lt;br /&gt;
            {&lt;br /&gt;
                &amp;quot;path&amp;quot;: {?ResourcePath},&lt;br /&gt;
                &amp;quot;value&amp;quot;: {?Value}&lt;br /&gt;
            }&lt;br /&gt;
        ]&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|此MQTT消息主要用于LwM2M客户端的响应数据。&lt;br /&gt;
&lt;br /&gt;
* {?EndpointName}:字符串，LwM2M客户端名称&lt;br /&gt;
* {?MsgType}:字符串,消息类型。observe=观察，cancel-observe=取消观察，ack=空响应。&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 通知 (信息上报接口 - 通知) ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+MQTT消息&lt;br /&gt;
!主题&lt;br /&gt;
!负载消息&lt;br /&gt;
!说明&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;lwm2m/{?EndpiontName}/up/notify&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;reqID&amp;quot;: {?ReqID},&lt;br /&gt;
    &amp;quot;msgType&amp;quot;: {?MsgType},&lt;br /&gt;
    &amp;quot;seqNum&amp;quot;: {?ObserveSeqNum},&lt;br /&gt;
    &amp;quot;data&amp;quot;: {&lt;br /&gt;
        &amp;quot;code&amp;quot;: {?StatusCode},&lt;br /&gt;
        &amp;quot;codeMsg&amp;quot;: {?CodeMsg},&lt;br /&gt;
        &amp;quot;reqPath&amp;quot;: {?RequestPath},&lt;br /&gt;
        &amp;quot;content&amp;quot;: [&lt;br /&gt;
            {&lt;br /&gt;
                &amp;quot;path&amp;quot;: {?ResourcePath},&lt;br /&gt;
                &amp;quot;value&amp;quot;: {?Value}&lt;br /&gt;
            }&lt;br /&gt;
        ]&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|此MQTT消息主要用于LwM2M客户端通知消息。&lt;br /&gt;
&lt;br /&gt;
* {?EndpointName}:字符串，LwM2M客户端名称&lt;br /&gt;
* {?MsgType}:字符串，消息类型。一定为notify&lt;br /&gt;
* {?ObserveSeqNum}:数值，CoAP消息的&amp;quot;Observe&amp;quot;值。&lt;br /&gt;
* content字段同read响应的content字段。&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>HEYAHONG</name></author>
	</entry>
</feed>