数据推送接口
<p>[TOC]</p>
<h4>请求说明</h4>
<p>> 请求地址:/pushData/maxLinkV2 (待定)
请求方式:POST
数据格式:JSON
数据位于请求体里面:body</p>
<table>
<thead>
<tr>
<th>数据类型(type)</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>onLine</td>
<td>设备在线状态</td>
</tr>
<tr>
<td>sos</td>
<td>SOS号码设置结果</td>
</tr>
<tr>
<td>call</td>
<td>呼叫记录</td>
</tr>
<tr>
<td>accessoryAlarm</td>
<td>子设备上传信息</td>
</tr>
</tbody>
</table>
<h4>1、设备在线状态推送</h4>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 onLine:设备在线状态</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备编号</td>
</tr>
<tr>
<td>isOnLine</td>
<td>boolean</td>
<td>是</td>
<td>设备在线状态 true:在线 false:离线</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;: &quot;onLine&quot;,
&quot;imei&quot;: &quot;867435050047562&quot;,
&quot;isOnLine&quot;: true
}
]</code></pre>
<h4>2、SOS号码设置结果</h4>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 sos:SOS号码设置结果</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备编号</td>
</tr>
<tr>
<td>dateTime</td>
<td>String</td>
<td>是</td>
<td>时间 格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>sosArray</td>
<td>String</td>
<td>是</td>
<td>SOS号码使用","分割,共9个号码。</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;: &quot;sos&quot;,
&quot;imei&quot;: &quot;867435050047562&quot;,
&quot;dateTime&quot;: &quot;2024-10-16 11:42:50&quot;,
&quot;sosArray&quot;: &quot;15111111111,10086,10010,,,,,,&quot;
}
]</code></pre>
<h4>3、呼叫记录</h4>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 call:呼叫记录</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备编号</td>
</tr>
<tr>
<td>dateTime</td>
<td>String</td>
<td>是</td>
<td>呼叫时间 格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>isSos</td>
<td>boolean</td>
<td>是</td>
<td>SOS呼叫 true:是 false:不是</td>
</tr>
<tr>
<td>callType</td>
<td>String</td>
<td>是</td>
<td>呼叫类型 ringing:呼入 dialing:呼出</td>
</tr>
<tr>
<td>callNum</td>
<td>String</td>
<td>是</td>
<td>呼叫号码</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;: &quot;call&quot;,
&quot;imei&quot;: &quot;867435050047562&quot;,
&quot;dateTime&quot;: &quot;2020-12-23 18:20:43&quot;,
&quot;callNum&quot;: &quot;16621056884&quot;,
&quot;callType&quot;: &quot;dialing&quot;,
&quot;isSos&quot;: true
}
]</code></pre>
<h4>4、设备配件上传信息</h4>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 accessoryAlarm:配件报警</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备编号</td>
</tr>
<tr>
<td>dateTime</td>
<td>String</td>
<td>是</td>
<td>呼叫时间 格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>accessoryType</td>
<td>String</td>
<td>是</td>
<td>设备类型</td>
</tr>
<tr>
<td>infraredCount</td>
<td>int</td>
<td>否</td>
<td>红外检测次数</td>
</tr>
</tbody>
</table>
<p>>注意事项:红外设备是检测到就有一条数据,其他的设备为报警</p>
<pre><code class="language-json">[
{
&quot;type&quot;: &quot;accessoryAlarm&quot;,
&quot;imei&quot;: &quot;867435050047562&quot;,
&quot;dateTime&quot;: &quot;2024-10-12 11:52:45&quot;,
&quot;accessoryType&quot;: &quot;Infrared&quot;,
&quot;infraredCount&quot;: 29
}
]</code></pre>
<pre><code class="language-json">[
{
&quot;type&quot;: &quot;accessoryAlarm&quot;,
&quot;dateTime&quot;: &quot;2024-10-12 11:48:49&quot;,
&quot;imei&quot;: &quot;867435050047562&quot;,
&quot;accessoryType&quot;: &quot;smoke&quot;
}
]</code></pre>
<table>
<thead>
<tr>
<th>设备类型(accessoryType)</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>Infrared</td>
<td>红外设备</td>
</tr>
<tr>
<td>smoke</td>
<td>烟雾报警器</td>
</tr>
<tr>
<td>door</td>
<td>门磁</td>
</tr>
<tr>
<td>GAS</td>
<td>燃气报警</td>
</tr>
<tr>
<td>water</td>
<td>氺浸报警</td>
</tr>
<tr>
<td>carbonMonoxide</td>
<td>一氧化碳报警</td>
</tr>
</tbody>
</table>