常熟


获取传感器数据

[TOC]

简要描述
  • 获取传感器数据接口
请求URL
  • http://127.0.0.1:8081/sensor/get
请求方式
  • POST
返回示例
  {
    "msg": "操作成功",
    "code": 200,
    "data": {
        "count": 10,
        "datastreams": [
            {
                "datapoints": [
                    {
                        "at": "2021-09-14 14:59:47.453",
                        "value": {
                            "1": "26.5"
                        }
                    }
                ],
                "id": "twd"
            },
            {
                "datapoints": [
                    {
                        "at": "2022-07-22 22:54:29.593",
                        "value": {
                            "1": "135"
                        }
                    }
                ],
                "id": "fx"
            },
            {
                "datapoints": [
                    {
                        "at": "2022-07-22 22:54:16.087",
                        "value": {
                            "1": "14"
                        }
                    }
                ],
                "id": "gz"
            },
            {
                "datapoints": [
                    {
                        "at": "2022-07-22 22:54:30.353",
                        "value": {
                            "1": "1"
                        }
                    }
                ],
                "id": "yl"
            },
            {
                "datapoints": [
                    {
                        "at": "2021-09-14 14:59:48.213",
                        "value": {
                            "1": "0"
                        }
                    }
                ],
                "id": "tsd"
            },
            {
                "datapoints": [
                    {
                        "at": "2021-09-14 15:18:40.714",
                        "value": {
                            "1": "9.82"
                        }
                    }
                ],
                "id": "ph"
            },
            {
                "datapoints": [
                    {
                        "at": "2022-07-22 22:54:14.618",
                        "value": {
                            "1": "23.1"
                        }
                    }
                ],
                "id": "kwd"
            },
            {
                "datapoints": [
                    {
                        "at": "2022-07-22 22:54:15.343",
                        "value": {
                            "1": "98.3"
                        }
                    }
                ],
                "id": "ksd"
            },
            {
                "datapoints": [
                    {
                        "at": "2022-07-22 22:54:28.848",
                        "value": {
                            "1": "1.9"
                        }
                    }
                ],
                "id": "fs"
            },
            {
                "datapoints": [
                    {
                        "at": "2021-09-14 14:59:48.953",
                        "value": {
                            "1": "0"
                        }
                    }
                ],
                "id": "ec"
            }
        ]
    }
}

页面列表

ITEM_HTML