4 获取设备在线状态
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://120.77.72.190:8080/api/ShenzhensuyueCtl/getHeartbeat</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </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>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": 1, //1 成功。0失败
"data": {
"macno": 1,//设备号
"lastbeat": 1539074635, //上次心跳的时间戳
"online": 1 //1 在线。0 不在线
},
"msg": "查询成功"
}</code></pre>