电力集团项目

运营平台+IoT平台,面向数字孪生大屏提供OpenAPI数据


获取灯的位置和状态

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>用户注册接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://xx.com/api/equipment/getLightDevice</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 style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">equipmentCode</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>设备code</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{     &amp;quot;code&amp;quot;: 200,     &amp;quot;message&amp;quot;: &amp;quot;success&amp;quot;,     &amp;quot;data&amp;quot;: {         &amp;quot;code&amp;quot;: &amp;quot;001000&amp;quot;,         &amp;quot;name&amp;quot;: &amp;quot;全开&amp;quot;,         &amp;quot;location&amp;quot;: &amp;quot;国重1A配电_一楼&amp;quot;,         &amp;quot;id&amp;quot;: 1217,         &amp;quot;status&amp;quot;: &amp;quot;1&amp;quot;     } }</code></pre> <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;">code</td> <td style="text-align: left;">string</td> <td>设备code</td> </tr> <tr> <td style="text-align: left;">name</td> <td style="text-align: left;">string</td> <td>名称</td> </tr> <tr> <td style="text-align: left;">location</td> <td style="text-align: left;">string</td> <td>设备位置</td> </tr> <tr> <td style="text-align: left;">status</td> <td style="text-align: left;">string</td> <td>设备状态1开,0关</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML