自控页面弹窗获取传感器(条件)列表
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取传感器列表</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xgkj.hljnyxx.com/dongnongBackend/Home/Plc/getFuncInfo</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">greenhouseId</td>
<td style="text-align: left;">是</td>
<td>温室 ID</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;查询成功&quot;,
&quot;data&quot;: {
&quot;func_info&quot;: [
{
&quot;device_id&quot;: &quot;560605&quot;,
&quot;device_name&quot;: &quot;土壤温度01&quot;,
&quot;device_unit&quot;: &quot;℃&quot;,
&quot;uid&quot;: 1
},
{
&quot;device_id&quot;: &quot;560606&quot;,
&quot;device_name&quot;: &quot;土壤水分01&quot;,
&quot;device_unit&quot;: &quot;%&quot;,
&quot;uid&quot;: 2
},
{
&quot;device_id&quot;: &quot;560607&quot;,
&quot;device_name&quot;: &quot;土壤盐分01&quot;,
&quot;device_unit&quot;: &quot;mS/cm&quot;,
&quot;uid&quot;: 3
},
{
&quot;device_id&quot;: &quot;560611&quot;,
&quot;device_name&quot;: &quot;土壤pH21&quot;,
&quot;device_unit&quot;: &quot;pH&quot;,
&quot;uid&quot;: 4
},
{
&quot;device_id&quot;: &quot;560612&quot;,
&quot;device_name&quot;: &quot;空气温度01&quot;,
&quot;device_unit&quot;: &quot;℃&quot;,
&quot;uid&quot;: 5
},
{
&quot;device_id&quot;: &quot;560599&quot;,
&quot;device_name&quot;: &quot;空气湿度02&quot;,
&quot;device_unit&quot;: &quot;%RH&quot;,
&quot;uid&quot;: 6
},
{
&quot;device_id&quot;: &quot;560608&quot;,
&quot;device_name&quot;: &quot;二氧化碳01&quot;,
&quot;device_unit&quot;: &quot;ppm&quot;,
&quot;uid&quot;: 7
},
{
&quot;device_id&quot;: &quot;560609&quot;,
&quot;device_name&quot;: &quot;光照强度01&quot;,
&quot;device_unit&quot;: &quot;Lux&quot;,
&quot;uid&quot;: 8
}
]
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">device_id</td>
<td>传感器标识,后续会用</td>
</tr>
<tr>
<td style="text-align: left;">device_name</td>
<td>传感器名称</td>
</tr>
<tr>
<td style="text-align: left;">device_unit</td>
<td>传感器单位</td>
</tr>
<tr>
<td style="text-align: left;">uid</td>
<td>唯一标识</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>无</li>
</ul>