JSON_TemperatureIntervalMeasurementAlarmRuleCap

JSON message about configuration capability of interval temperature measurement rule

{
  "TemperatureIntervalMeasurementAlarmRuleCap":{
    "RulesList":{
      "maxSize": 21,
/*required, int, the maximum number of rules*/
      "Rule":{
        "id": {
/*optional, int, rule ID*/
          "@min": 1,
          "@max": 21
        },
        "enabled": {
/*optional, boolean, whether to enable*/
          "@opt":[true,false] 
        },
        "alarmType": {
/*optional, string, alarm type: "highestTemp"-the highest temperature, "lowestTemp"-the lowest temperature*/
          "@opt":["highestTemp","lowestTemp"],
          "#text":"highestTemp"
        },
        "TemperatureIntervalList":{
/*temperature interval list; up to four intervals are supported*/
          "maxSize": 4,
/*required, int, the maximum number of intervals*/
          "TemperatureInterval":{
            "id": {
/*optional, int, No.*/
              "@min": 1,
              "@max": 4
            },
            "enabled": {
/*optional, boolean, whether to enable*/
              "@opt":[true,false] 
            },
            "name": {
/*optional, string, interval name*/
              "@min": 1,
              "@max": 32
            },
            "minTemperature": {
/*optional, float, the minimum temperature, range: [-20,550], unit: Celsius; the value should be accurate to one decimal place*/
              "@min": -20,
              "@max": 550
            },
            "maxTemperature": {
/*optional, float, the maximum temperature, range: [-20,550], unit: Celsius; the value should be accurate to one decimal place*/
              "@min": -20,
              "@max": 550
            },
            "alarmColor": {
/*optional, alarm color of temperature interval*/
              "R": 1,
/*optional, int*/
              "G": 1,
/*optional, int*/
              "B": 1
/*optional, int*/
            },
            "AlarmOutputIOPortList":{
/*optional, alarm output port list*/
              "maxSize": 2,
/*required, int, the maximum number of ports*/
              "OutputIOPort":{
/*optional, int, port No.*/
                "portID": {
                  "@min": 1,
                  "@max": 2
                },
                "enabled": {
/*required, boolean, whether to enable*/
                  "@opt":[true,false] 
                }
              }
            }
          }
        }
      }
    }
  }
}