迅鸣物联网文档

迅鸣物联网文档


获取设备的当前温湿度信息

<p><strong>简要描述:</strong> </p> <ul> <li>获取设备的当前温湿度信息</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>https://wxapp.xunmingiot.com/open/select/101/device_id/</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET</li> </ul> <p><strong>参数:</strong> </p> <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;">device_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>设备的sn号,拼接到url中</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "id":67, "update_time":1576739117, "temperature":"240", "humidity":"251" }</code></pre> <p><strong>返回参数说明</strong> </p> <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;">update_time</td> <td style="text-align: left;">time</td> <td>更新时间</td> </tr> <tr> <td style="text-align: left;">temperature</td> <td style="text-align: left;">string</td> <td>温度</td> </tr> <tr> <td style="text-align: left;">humidity</td> <td style="text-align: left;">string</td> <td>湿度</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML