注册新锁
<p><strong>接口描述:</strong></p>
<ul>
<li>将新锁注册到接口服务器,方便接口服务器对锁状态回传。</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>/AddLock</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>data参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>DevSN</td>
<td>是</td>
<td>string</td>
<td>设备序列号,16位数字,全球唯一</td>
</tr>
<tr>
<td>SeqNumber</td>
<td>是</td>
<td>string</td>
<td>设备名称,唯一不可重复</td>
</tr>
</tbody>
</table>
<p><strong>参数示例</strong></p>
<pre><code>{
&quot;PID&quot;:&quot;2020050614236218&quot;,
&quot;Timestamp&quot;:&quot;1685987537276&quot;,
&quot;Sign&quot;:&quot;51c0d073d34acd05e3cc2006fdcf2fb8&quot;,
&quot;data&quot;: [{
&quot;DevSN&quot;:&quot;1234567890123456&quot;,
&quot;SeqNumber&quot;:&quot;测试1&quot;
},{
&quot;DevSN&quot;:&quot;1234567000000000&quot;,
&quot;SeqNumber&quot;:&quot;测试2&quot;
}]
}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;PID&quot;: null,
&quot;Timestamp&quot;: null,
&quot;Sign&quot;: null,
&quot;state&quot;: 1,
&quot;message&quot;: &quot;操作成功完成&quot;,
&quot;data&quot;: null
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>state</td>
<td>int</td>
<td>详看<strong>附录</strong>中的接口返回state值说明</td>
</tr>
<tr>
<td>message</td>
<td>string</td>
<td>接口结果说明</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>接口返回的具体数据</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong></p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>