EM320-TH可配置属性
你可以通过 API 修改物模型的可配置属性来更新设备的设置。本文档提供 EM320-TH物模型的可配置参数以及如何使用它们。
使用方法
- 参考 EM320-TH默认属性与可修改属性。
 - 复制示例代码,去掉不需要修改的注释和参数。
 - 根据详细信息编辑所需的属性 属性描述。注: 确保编辑后的示例代码符合JSON格式要求。
 - 使用编辑后的示例代码作为主体参数 更新设备属性。
 
可配置属性
以下代码表示EM320-TH物模型中的所有可配置属性及其默认值。
- 单击属性可查看其详细说明和有效值。
 - 根据需要配置示例代码,然后将其作为主体参数 更新设备属性 来快速完成配置。
 
{
    "properties": {
        "reporting_interval": 600,    // The interval for data reporting (second).
        "collecting_interval": 60,    // The interval for collecting data (second).
        "data_storage_enable": false,    // Do NOT allow the device to store data.
        "retransmission_enable": false,    // Disable data retransmission.
        "retransmission_interval":{    // The interval for data retransmission (second).
            "interval":600
        },
        "retrival_interval":{   // The interval for data retrieval (second).
            "interval": 60
        },
        "threshold_parameter":{    // Disable temperature alarm.
            "threshold_condition": 0,    
            "threshold_min": 0,
            "threshold_max": 0
        }
    }
}
            描述
下表提供了 EM320-TH可配置属性的描述和有效值。
| Parameter | Type | Description | |
|---|---|---|---|
| reporting_interval | Integer | 
                                     Specify the interval for data reporting (Unit: Second). 
  | 
                            |
| collecting_interval | Integer | 
                                     Specify the interval for collecting data (Unit: Second). 
  | 
                            |
| data_storage_enable | Boolean | 
                                     Decide whether to allow the device to store data. Valid value:  
                                
  | 
                            |
| retransmission_enable | Boolean | 
                                     Decide whether to enable data retransmission, which allows the device to log time point of network disconnection periodically resend the accumulated data during the disconnection period upon reconnection. Valid value: 
                                
  | 
                            |
| retransmission_interval | Struct | 
                                     注: This setting ONLY takes effect
                                            when retransmission_enable is set to
                                                 The interval for data
                                        retransmission.true. | 
                            |
| interval | Integer | 
                                     Specify the interval for data retransmission (Unit:
                                            Second). 
                                
  | 
                            |
| retrival_interval | Struct | 
                                     The time interval for data retrieval.  | 
                            |
| interval | Integer | 
                                     Specify the time interval for data retrieval (Unit:
                                            Second). 
                                
  | 
                            |
| threshold_parameter | Struct | 
                                     Temperature alarm settings.  | 
                            |
| threshold_condition | Enum | 
                                     Specify the conditions for triggering the temperature alarm. Valid value: 
                                
  | 
                            |
| threshold_min | Float | 
                                     Specify the minimum threshold for temperature alarm (Unit: °C). 
  | 
                            |
| threshold_max | Float | 
                                     Specify the maximum threshold for temperature alarm (Unit: °C). 
  | 
                            |