4、查询设备状态
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://120.77.72.190:8086/MacControl/queryMachineStatus</code></li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">macno</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>设备号</td>
</tr>
<tr>
<td style="text-align: left;">callback_url</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>回调地址(只有设置回调地址才会有回调数据回来)</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": "1",//为0为请求失败
"msg": "发送成功,等待回调",
}</code></pre>
<p><strong>回调数据</strong></p>
<pre><code>{
"macno": "1",//设备号
"time": "150023564825",//系统时间
"sysnum": "1",//出货流水
"seal_status": 1,//出货状态 0:出货全部已完成,1:出货进行中
"aisle_1": "1",//掉货结果,0x00:空闲,该货道没有开始出货,1:正在出货,2:没有检测到掉货,3: 掉货成功
"aisle_2": "1",
"aisle_3": "1",
"aisle_4": "1",
"aisle_5": "1",
"lock": 1,//补货锁的状态 0:门关,1:门开
}</code></pre>
<p><strong>超时回调数据</strong></p>
<pre><code>{
"code": "0",//为0为请求失败
"msg": "设备响应超时",
"data":{
"macno": "1",//设备号
"com_type": "08fc",//类型
}
}</code></pre>