根据设备id,获取通道数据及数据,
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>223.15.233.109:9899/api/xph/getdevicedata</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIzOTYwMzI2MDgiLCJhdWQiOiJjb25zdW1lciIsImV4cCI6MTY4MTQ2OTYyNX0._9aZK5pXYNE8EcOzM9ePQJB0OWji61N1DXu_VGHhwzZPiYDxIASVdBjTkIxJGdcYrcRbVkq89qXHrqG32k6Qkw</td>
<td>是</td>
<td>string</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>请求Query参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">username</td>
<td style="text-align: left;">sxzhny</td>
<td>是</td>
<td>string</td>
<td>396032608;cq</td>
</tr>
<tr>
<td style="text-align: left;">password</td>
<td style="text-align: left;">sxzhny123456</td>
<td>是</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">facId</td>
<td style="text-align: left;">16092387</td>
<td>是</td>
<td>string</td>
<td>控制网关:16092387;水肥机:16092258;cq传感:16071439 cq:16062664</td>
</tr>
<tr>
<td style="text-align: left;"></td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
&quot;code&quot;: &quot;200&quot;,
&quot;msg&quot;: &quot;数据获取成功&quot;,
&quot;deviceid&quot;: &quot;16092258&quot;,
&quot;elelists&quot;: [
{
&quot;ch&quot;: 1,
&quot;name&quot;: &quot;压力&quot;,
&quot;unit&quot;: &quot;KPa&quot;,
&quot;prec&quot;: &quot;1&quot;,
&quot;data&quot;: 18
},
{
&quot;ch&quot;: 4,
&quot;name&quot;: &quot;流量&quot;,
&quot;unit&quot;: &quot;L/min&quot;,
&quot;prec&quot;: &quot;1&quot;,
&quot;data&quot;: 0
}
],
&quot;entity&quot;: [ //变频器数据列表
{
&quot;datetime&quot;: &quot;2023-08-12 15:54:22&quot;, //上报时间
&quot;eUnit&quot;: &quot;KPa&quot;, // 单位
&quot;eValue&quot;: &quot;18&quot;, //值
&quot;eKey&quot;: &quot;e1&quot;,
&quot;eName&quot;: &quot;压力&quot;,
&quot;eNum&quot;: &quot;162&quot;
},
{
&quot;datetime&quot;: &quot;2023-08-12 15:54:22&quot;,
&quot;eUnit&quot;: &quot;L/min&quot;,
&quot;eValue&quot;: &quot;0&quot;,
&quot;eKey&quot;: &quot;e4&quot;,
&quot;eName&quot;: &quot;流量&quot;,
&quot;eNum&quot;: &quot;161&quot;
}
],
&quot;relaylists&quot;: [
{
&quot;ch&quot;: 0,
&quot;name&quot;: &quot;变频器 &quot;,
&quot;status&quot;: 0
},
{
&quot;ch&quot;: 1,
&quot;name&quot;: &quot;施肥泵&quot;,
&quot;status&quot;: 0
},
{
&quot;ch&quot;: 2,
&quot;name&quot;: &quot;施肥1&quot;,
&quot;status&quot;: 0
},
{
&quot;ch&quot;: 3,
&quot;name&quot;: &quot;施肥2&quot;,
&quot;status&quot;: 0
},
{
&quot;ch&quot;: 4,
&quot;name&quot;: &quot;施肥3&quot;,
&quot;status&quot;: 0
},
{
&quot;ch&quot;: 13,
&quot;name&quot;: &quot;搅拌机1&quot;,
&quot;status&quot;: 0
},
{
&quot;ch&quot;: 14,
&quot;name&quot;: &quot;搅拌机2&quot;,
&quot;status&quot;: 0
},
{
&quot;ch&quot;: 15,
&quot;name&quot;: &quot;搅拌机3&quot;,
&quot;status&quot;: 0
}
]
}
</code></pre>