获取锁的状态数据
<p><strong>接口描述:</strong></p>
<ul>
<li>批量获得锁的状态数据</li>
<li>单次最多获取20套锁的状态,超过将报错。</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>/QLockStatus</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>Devs</td>
<td>是</td>
<td>string</td>
<td>设备序列清单,每个序列号之间用半角逗号分开,一次最多20个</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;Devs&quot;:&quot;0000202001010041,0000202001010042&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;: [
{
&quot;DevSN&quot;: &quot;0000202001010041&quot;,
&quot;CreateTime&quot;: &quot;2020-01-01 23:00:00&quot;,
&quot;DevLastOnlineTime&quot;: &quot;2020-05-10T17:16:26&quot;,
&quot;DevPower&quot;: 100,
&quot;LockStatus&quot;: 1,
&quot;DevType&quot;: 1,
&quot;SpaceEmpty&quot;: 1,
&quot;ErrCode&quot; : &quot;0000000000010110&quot;,
&quot;OptOrder&quot;: &quot;00000000&quot;,
&quot;Online&quot;:true
},
{
&quot;DevSN&quot;: &quot;0000202001010042&quot;,
&quot;CreateTime&quot;: &quot;2020-01-01 23:00:00&quot;,
&quot;DevLastOnlineTime&quot;: &quot;2020-05-10T17:16:26&quot;,
&quot;DevPower&quot;: 100,
&quot;LockStatus&quot;: 1,
&quot;DevType&quot;: 1,
&quot;SpaceEmpty&quot;: 1,
&quot;ErrCode&quot; : &quot;0000000000010110&quot;,
&quot;OptOrder&quot;: &quot;00000000&quot;,
&quot;Online&quot;:true
}
]
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data</td>
<td>对象</td>
<td>具体数据</td>
</tr>
<tr>
<td>-DevSN</td>
<td>String</td>
<td>设备序列号</td>
</tr>
<tr>
<td>-CreateTime</td>
<td>string</td>
<td>设备注册时间</td>
</tr>
<tr>
<td>-DevLastOnlineTime</td>
<td>string</td>
<td>设备最后活动时间</td>
</tr>
<tr>
<td>-DevPower</td>
<td>int</td>
<td>电量:1-100%</td>
</tr>
<tr>
<td>-LockStatus</td>
<td>int</td>
<td>设备状态: 0x00:上电初始化 0x01:车位锁上升到位 0x02:车位锁下降到位 0x03:车位锁上升错误 0x04:车位锁下降错误 0x05:车位锁正在动作,还未到位 0x06: 车位锁上升开关错误 0x07: 车位锁下降开关错误</td>
</tr>
<tr>
<td>-DevType</td>
<td>int</td>
<td>设备类别:: 0x02:常降车位锁 0x01:常升车位锁</td>
</tr>
<tr>
<td>-SpaceEmpty</td>
<td>int</td>
<td>车位状态: 0x01:车位上有车 0x02:车位上无车</td>
<td>\</td>
</tr>
<tr>
<td>-ErrCode</td>
<td>string</td>
<td>错误号,每字符代表一种错误,具体请详阅《错误号说明》</td>
</tr>
<tr>
<td>-OptOrder</td>
<td>string</td>
<td>当前开关锁业务流水,16位数字</td>
</tr>
<tr>
<td>-Online</td>
<td>bool</td>
<td>是否在线</td>
</tr>
</tbody>
</table>