数据推送接口
<p>[TOC]</p>
<h3>请求说明</h3>
<p>> 请求地址:/pushData/kqPushData(待定)
请求方式:POST
数据格式:JSON
数据位于请求体里面:body</p>
<h3>公共参数说明</h3>
<p>经纬度坐标系为 bd_09 百度地图</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型</td>
</tr>
<tr>
<td>deviceNum</td>
<td>String</td>
<td>是</td>
<td>设备号</td>
</tr>
<tr>
<td>createTime</td>
<td>long</td>
<td>是</td>
<td>时间戳(1722924181779)</td>
</tr>
</tbody>
</table>
<h4>数据类型说明(type)</h4>
<table>
<thead>
<tr>
<th>类型名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>location</td>
<td>当前位置信息</td>
</tr>
<tr>
<td>online</td>
<td>开机数据</td>
</tr>
<tr>
<td>offline</td>
<td>关机数据</td>
</tr>
<tr>
<td>alarm</td>
<td>报警数据</td>
</tr>
<tr>
<td>bloodPressure</td>
<td>血压数据</td>
</tr>
<tr>
<td>heart</td>
<td>心率/步数/睡眠数据数据包</td>
</tr>
<tr>
<td>lowBattery</td>
<td>低电量报警</td>
</tr>
<tr>
<td>heartAlarm</td>
<td>心率异常报警</td>
</tr>
<tr>
<td>oxygen</td>
<td>血氧数据</td>
</tr>
<tr>
<td>wear</td>
<td>佩戴状态</td>
</tr>
<tr>
<td>temperature</td>
<td>体温数据</td>
</tr>
<tr>
<td>kinSuccess</td>
<td>亲情号码/SOS号码设置成功</td>
</tr>
<tr>
<td>intervalSuccess</td>
<td>上传间隔设置成功</td>
</tr>
<tr>
<td>logicSuccess</td>
<td>逻辑开关设置成功</td>
</tr>
<tr>
<td>whiteListSuccess</td>
<td>白名单/通讯录设置成功</td>
</tr>
</tbody>
</table>
<h3>1、当前位置信息(location)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>isWear</td>
<td>boolean</td>
<td>是</td>
<td>佩戴状态:true 已佩戴 false 未佩戴</td>
</tr>
<tr>
<td>battery</td>
<td>int</td>
<td>是</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>locateType</td>
<td>int</td>
<td>是</td>
<td>定位类型:1、GPS 2、基站 3、WIFI</td>
</tr>
<tr>
<td>lon</td>
<td>double</td>
<td>是</td>
<td>经度</td>
</tr>
<tr>
<td>lat</td>
<td>double</td>
<td>是</td>
<td>纬度</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;: &quot;location&quot;,
&quot;deviceNum&quot;: &quot;860870050373526&quot;,
&quot;createTime&quot;: 1729142512483,
&quot;isWear&quot;: true,
&quot;battery&quot;: 95,
&quot;locateType&quot;: 1,
&quot;lon&quot;: 116.308869,
&quot;lat&quot;: 40.059382
}
]</code></pre>
<h3>2、开机数据(online)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>isOnline</td>
<td>boolean</td>
<td>是</td>
<td>在线状态:true 在线</td>
</tr>
<tr>
<td>isWear</td>
<td>boolean</td>
<td>是</td>
<td>佩戴状态:true 已佩戴 false 未佩戴</td>
</tr>
<tr>
<td>battery</td>
<td>int</td>
<td>是</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>locateType</td>
<td>int</td>
<td>是</td>
<td>定位类型:1、GPS 2、基站 3、WIFI</td>
</tr>
<tr>
<td>lon</td>
<td>double</td>
<td>是</td>
<td>经度</td>
</tr>
<tr>
<td>lat</td>
<td>double</td>
<td>是</td>
<td>纬度</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;online&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729142953591,
&quot;isOnline&quot;:true,
&quot;isWear&quot;:true,
&quot;battery&quot;:95,
&quot;locateType&quot;:1,
&quot;lon&quot;:116.308869,
&quot;lat&quot;:40.059382
}
]</code></pre>
<h3>3、关机数据(offline)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>isOnline</td>
<td>boolean</td>
<td>是</td>
<td>在线状态:false 离线</td>
</tr>
<tr>
<td>battery</td>
<td>int</td>
<td>是</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>locateType</td>
<td>int</td>
<td>是</td>
<td>定位类型:1、GPS 2、基站 3、WIFI</td>
</tr>
<tr>
<td>lon</td>
<td>double</td>
<td>是</td>
<td>经度</td>
</tr>
<tr>
<td>lat</td>
<td>double</td>
<td>是</td>
<td>纬度</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;offline&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729143030394,
&quot;isOnline&quot;:false,
&quot;battery&quot;:95,
&quot;locateType&quot;:1,
&quot;lon&quot;:116.308869,
&quot;lat&quot;:40.059382
}
]</code></pre>
<h3>4、报警数据(alarm)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>alarmType</td>
<td>int</td>
<td>是</td>
<td>报警类型:1 红键报警 2 黄键报警 3 绿键提醒 4SOS报警</td>
</tr>
<tr>
<td>locateType</td>
<td>int</td>
<td>是</td>
<td>定位类型:1、GPS 2、基站 3、WIFI</td>
</tr>
<tr>
<td>lon</td>
<td>double</td>
<td>是</td>
<td>经度</td>
</tr>
<tr>
<td>lat</td>
<td>double</td>
<td>是</td>
<td>纬度</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;alarm&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729143086808,
&quot;alarmType&quot;:1,
&quot;locateType&quot;:1,
&quot;lon&quot;:116.308869,
&quot;lat&quot;:40.059382
}
]</code></pre>
<h3>5、血压数据(bloodPressure)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>diastolic</td>
<td>int</td>
<td>是</td>
<td>舒张压</td>
</tr>
<tr>
<td>systolic</td>
<td>int</td>
<td>是</td>
<td>收缩压</td>
</tr>
<tr>
<td>battery</td>
<td>int</td>
<td>是</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>isWear</td>
<td>boolean</td>
<td>是</td>
<td>佩戴状态:true 已佩戴 false 未佩戴</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;bloodPressure&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729143299949,
&quot;diastolic&quot;:77,
&quot;systolic&quot;:117,
&quot;battery&quot;:95,
&quot;isWear&quot;:true
}
]</code></pre>
<h3>6、心率/步数/睡眠数据数据包(heart)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>heart</td>
<td>int</td>
<td>是</td>
<td>心率</td>
</tr>
<tr>
<td>movement</td>
<td>int</td>
<td>是</td>
<td>步数</td>
</tr>
<tr>
<td>sleepData</td>
<td>String</td>
<td>是</td>
<td>睡眠数据</td>
</tr>
<tr>
<td>battery</td>
<td>int</td>
<td>是</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>isWear</td>
<td>boolean</td>
<td>是</td>
<td>佩戴状态:true 已佩戴 false 未佩戴</td>
</tr>
</tbody>
</table>
<p>> 睡眠数据实例说明:201612162330&201612170730&0210&0550
睡眠开始时间&睡眠结束时间&深睡眠时间&浅睡眠时间,没有数据时&之间都为空。</p>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;heart&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729143432153,
&quot;heart&quot;:80,
&quot;movement&quot;:120,
&quot;sleepData&quot;:&quot;201612162330&amp;201612170730&amp;0210&amp;0550&quot;,
&quot;battery&quot;:95,
&quot;isWear&quot;:true
}
]</code></pre>
<h3>7、低电量报警(lowBattery)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>battery</td>
<td>int</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>isWear</td>
<td>boolean</td>
<td>佩戴状态:true 已佩戴 false 未佩戴</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;lowBattery&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729143480332,
&quot;battery&quot;:20,
&quot;isWear&quot;:true
}
]</code></pre>
<h3>8、心率异常报警(heartAlarm)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>alarmType</td>
<td>int</td>
<td>报警类型:1 心率报警 2 无动作报警 3 跌倒报警</td>
</tr>
<tr>
<td>battery</td>
<td>int</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>isWear</td>
<td>boolean</td>
<td>佩戴状态:true 已佩戴 false 未佩戴</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;heartAlarm&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729143571045,
&quot;alarmType&quot;:1,
&quot;battery&quot;:80,
&quot;isWear&quot;:true
}
]</code></pre>
<h3>9、血氧数据(oxygen)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>oxygen</td>
<td>int</td>
<td>血氧</td>
</tr>
<tr>
<td>battery</td>
<td>int</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>isWear</td>
<td>boolean</td>
<td>佩戴状态:true 已佩戴 false 未佩戴</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;oxygen&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729143633264,
&quot;oxygen&quot;:96,
&quot;battery&quot;:80,
&quot;isWear&quot;:true
}
]</code></pre>
<h3>10、佩戴状态(wear)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>battery</td>
<td>int</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>isWear</td>
<td>boolean</td>
<td>佩戴状态:true 已佩戴 false 未佩戴</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;wear&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729143675829,
&quot;battery&quot;:80,
&quot;isWear&quot;:true
}
]</code></pre>
<h3>11、体温数据(temperature)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>temperature</td>
<td>double</td>
<td>体温数据</td>
</tr>
<tr>
<td>battery</td>
<td>int</td>
<td>电量:1~100</td>
</tr>
<tr>
<td>isWear</td>
<td>boolean</td>
<td>佩戴状态:true 已佩戴 false 未佩戴</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;temperature&quot;,
&quot;deviceNum&quot;:&quot;860870050373526&quot;,
&quot;createTime&quot;:1729143717744,
&quot;temperature&quot;:26.5,
&quot;battery&quot;:80,
&quot;isWear&quot;:true
}
]</code></pre>
<h3>12、亲情号码/SOS号码设置成功(kinSuccess)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td>String</td>
<td>数据id</td>
</tr>
</tbody>
</table>
<h3>13、上传间隔设置成功(intervalSuccess)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td>String</td>
<td>数据id</td>
</tr>
<tr>
<td>intervalType</td>
<td>int</td>
<td>间隔类型 1:心率周期 2:GPS 周期 3:体温测量周期</td>
</tr>
</tbody>
</table>
<h3>14、逻辑开关设置成功(logicSuccess)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td>String</td>
<td>数据id</td>
</tr>
<tr>
<td>logicType</td>
<td>int</td>
<td>逻辑类型 1:GPS 开关 2:白名单开关</td>
</tr>
</tbody>
</table>
<h3>15、白名单/通讯录设置成功(whiteListSuccess)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td>String</td>
<td>数据id</td>
</tr>
</tbody>
</table>