获取模块的取值范围

  • 地址:/data/valueRange.json

  • 请求方式:GET
    在浏览器中访问后保存的本地供后面控制设备使用
    valueRange.json格式如下:

    {
    "ayd006C-rs485":{
        "01":{
            "BOOL":{
                "name":"状态",
                "readWrite":"RW",
                "type":"BOOL",
                "unit":"",
                "floatEncoding":"",
                "orderWeight":1,
                "valueRange":{
                    "get":{
                        "00":"关",
                        "01":"开"
                    },
                    "set":{
                        "false":"00",
                        "true":"01"
                    }
                },
                "attributes":null
            }
        },
        "02":{
            "INT":{
                "name":"亮度",
                "readWrite":"RW",
                "type":"UINT8",
                "unit":"%",
                "floatEncoding":"",
                "orderWeight":2,
                "valueRange":{
                    "get":{
                        "max":"100",
                        "min":"0"
                    },
                    "set":{
                        "max":"100",
                        "min":"0",
                        "scale":"0",
                        "step":"1"
                    }
                },
                "attributes":null
            }
        }
    },
    "aydr0610da":{
        "01":{
            "BOOL":{
                "name":"电源",
                "readWrite":"RW",
                "type":"BOOL",
                "unit":"",
                "floatEncoding":"",
                "orderWeight":1,
                "valueRange":{
                    "get":{
                        "00":"关",
                        "01":"开"
                    },
                    "set":{
                        "false":"00",
                        "true":"01"
                    }
                },
                "attributes":null
            }
        },
        "02":{
            "INT":{
                "name":"亮度",
                "readWrite":"RW",
                "type":"UINT8",
                "unit":"%",
                "floatEncoding":"",
                "orderWeight":2,
                "valueRange":{
                    "get":{
                        "max":"100",
                        "min":"0"
                    },
                    "set":{
                        "max":"100",
                        "min":"0"
                    }
                },
                "attributes":null
            }
        }
    }
    }

    数据格式说明:

作者:泛云智能  创建时间:2021-10-16 16:36
最后编辑:泛云智能  更新时间:2021-10-21 14:45