EM300-TH可配置属性

你可以通过 API 修改物模型的可配置属性来更新设备的设置。 本文档提供 EM300-TH物模型的可配置参数以及如何使用它们。

使用方法

  1. 参考 EM300-TH默认属性与可修改属性
  2. 复制示例代码,去掉不需要修改的注释和参数。
  3. 根据详细信息编辑所需的属性 属性描述
    注: 确保编辑后的示例代码符合JSON格式要求。
  4. 使用编辑后的示例代码作为主体参数 更新设备属性

可配置属性

以下代码表示EM300-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
        },
        "temperature_calibration_parameter":{     // Disable temperature calibration.
            "enable": false,
            "value": 0
        },
        "humidity_calibration_parameter":{    // Disable humidity calibration.
            "enable": false,
            "value": 0
        },
        "d2d_trigger_by_temperature":{    // Disable D2D communication triggered by temperature reaching the threshold.
            "enable": false,
            "value": false,
            "control_command": "0000"
        },
        "d2d_trigger_by_temperature_threshold_release":{    // Disable D2D communication triggered by temperature outside the threshold.
            "enable": false,
            "lora_uplink_enable": false,
            "control_command": "0000"
        }
    }
}

描述

下表提供了EM300-TH可配置属性的描述和有效值。

Parameter Type Description
reporting_interval Integer

Specify the interval for data reporting (Unit: Second).

  • Default value: 600
  • Valid value: 60 - 64800
collecting_interval Integer

Specify the interval for collecting data (Unit: Second).

  • Default value: 60
  • Valid value: 60 - 64800
data_storage_enable Boolean

Decide whether to allow the device to store data.

Valid value:
  • false: Disallow (Default value).
  • true: Allow.
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:
  • false: Disable (Default value).
  • true: Enable.
retransmission_interval Struct
注: This setting ONLY takes effect when retransmission_enable is set to true.
The interval for data retransmission.
interval Integer
Specify the interval for data retransmission (Unit: Second).
  • Default value: 600
  • Valid value: 30 - 1200
retrival_interval Struct

The time interval for data retrieval.

interval Integer
Specify the time interval for data retrieval (Unit: Second).
  • Default value: 60
  • Valid value: 30 - 1200
threshold_parameter Struct

Temperature alarm settings.

threshold_condition Enum

Specify the conditions for triggering the temperature alarm.

Valid value:
  • 0: Do NOT send temperature alarm (Default value).
  • 1: The detected temperature < Minimum threshold.
  • 2: The detected temperature > Maximum threshold.
  • 3: Minimum threshold < The detected temperature < Maximum threshold.
  • 4: The detected temperature < Minimum threshold or the detected temperature > Maximum threshold.
threshold_min Float

Specify the minimum threshold for temperature alarm (Unit: °C).

  • Default value: 0
  • Valid value: -30 - 70
    注: This value supports setting one decimal place.
threshold_max Float

Specify the maximum threshold for temperature alarm (Unit: °C).

  • Default value: 0
  • Valid value: -30 - 70
    注: This value supports setting one decimal place.
temperature_calibration_parameter Struct Temperature calibration settings.
enable Boolean

Decide whether to enable temperature calibration.

Valid value:
  • false: Disable (Default value).
  • true: Enable.
value Float

Specify the calibration value (Unit: °C).

  • Default value: 0
  • Valid value: -100 - 100
    注: This value supports setting one decimal place.
humidity_calibration_parameter Struct Humidity calibration settings.
enable Boolean

Decide whether to enable humidity calibration.

Valid value:
  • false: Disable (Default value).
  • true: Enable.
value Float

Specify the calibration value (Unit: %RH).

  • Default value: 0
  • Valid value: -100 - 100
    注: This value supports setting one decimal place.
d2d_trigger_by_temperature Struct Settings of D2D communication triggered by temperature reaching the threshold.
enable Boolean

Decide whether to trigger D2D communication when the detected temperature reached the threshold.

Valid value:
  • false: Disable (Default value).
  • true: Enable.
    注: The settings of the following sub-parameters ONLY take effect when this value is set to true.
lora_uplink_enable Boolean

是否在D2D控制命令发出后,同时向网关上报数据包。

Valid value:
  • false: Disable (Default value).
  • true: Enable.
control_command String

Specify the control command for D2D communication triggered by temperature reaching the threshold.

  • Default value: 0000
  • Restrictions: 4 characters long.
d2d_trigger_by_temperature_threshold_release Struct Settings of D2D communication triggered by temperature outside the threshold.
enable Boolean

Decide whether to trigger D2D communication when the detected temperature is outside the threshold.

Valid value:
  • false: Disable (Default value).
  • true: Enable.
    注: The settings of the following sub-parameters ONLY take effect when this value is set to true.
lora_uplink_enable Boolean

是否在D2D控制命令发出后,同时向网关上报数据包。

Valid value:
  • false: Disable (Default value).
  • true: Enable.
control_command String

Specify the control command for D2D communication triggered by temperature outside the threshold.

  • Default value: 0000
  • Restrictions: 4 characters long.