EM500-SMTC – Configurable Properties
You can update a device's settings by modifying the configurable properties of its TSL model via API. This topic provides the configurable parameters for EM500-SMTC-MEC20 TSL model, their descriptions, and how to use them.
Usage
- Have an overview of the configurable properties and their default values of EM500-SMTC-MEC20 .
- Copy the example code and remove the comments and parameters that do not require modification.
- Edit the desired properties according to the detailed
properties description
.
Note: Make sure that the edited example code complies with the JSON format requirements.
- Use the edited example code as the body parameters of Update Device Properties Incrementally.
Configurable Properties
The following code represents all configurable properties in the EM500-SMTC-MEC20 TSL model, along with their default values.
- Click a property to view its detailed description and valid values.
- Configure the example code as needed, then use it as the body parameters of Update Device Properties Incrementally to save time and effort.
{
"version": "v1.1",
"type": "TSL",
"properties": {
"reporting_interval": 600, // Reporting Interval Type: int Unit: s
"time_zone": "0", // Time Zone Type: enum
"reset_collection_settings": { // Reset Collection Settings Type: struct
"times": 2, // Reset Collection Count Type: int
"interval": 5 // Reset Collection Period Type: int Unit: s
},
"sensor_temperature_enable": { // Sensor Enable Type: struct
"enable": true // Temperature Enable Type: bool
},
"sensor_humidity_enable": { // Sensor Enable Type: struct
"enable": true // Humidity Enable Type: bool
},
"sensor_electrical_conductivity_enable": { // Sensor Enable Type: struct
"enable": true // Conductivity Enable Type: bool
},
"collection_interval": 60, // Collecting Interval Type: int Unit: s
"electrical_conductivity_alarm_rule": { // Conductivity Threshold Alarm Type: struct
"enable": false, // Conductivity Threshold Alarm Type: bool
"condition": "0", // Threshold Condition Type: enum
"threshold_min": 0, // Value A Type: int Unit: us/cm
"threshold_max": 0 // Value B Type: int Unit: us/cm
},
"temperature_alarm_rule": { // Temperature Threshold Alarm Type: struct
"enable": false, // Temperature Threshold Alarm Type: bool
"condition": "0", // Threshold Condition Type: enum
"threshold_min": 0, // Value A Type: float Unit: ℃
"threshold_max": 0 // Value B Type: float Unit: ℃
},
"temperature_mutation_alarm_rule": { // Temperature Change Alarm Type: struct
"enable": false, // Temperature Change Alarm Type: bool
"threshold_max": 0.1 // Temperature change greater than Type: float Unit: ℃
},
"humidity_alarm_rule": { // Humidity Threshold Alarm Type: struct
"enable": false, // Humidity Threshold Alarm Type: bool
"condition": "0", // Threshold Condition Type: enum
"threshold_min": 0, // Value A Type: float Unit: %
"threshold_max": 0 // Value B Type: float Unit: %
},
"alarm_times": 3, // Alarm Reporting Times Type: int
"alarm_deactivation_enable": false, // Alarm Dismiss Report Type: bool
"d2d_enable": false, // D2D Enable Type: bool
"d2d_key": "5572404c696e6b4c", // D2D Key Type: string
"d2d_trigger_by_temperature": { // Temperature Settings Type: struct
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0000", // Control Command Type: string
},
"d2d_deactivation_by_temperature": { // Temperature Release Settings Type: struct
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0001", // Control Command Type: string
},
"d2d_trigger_by_temperature_mutation": { // Temperature Mutation Settings Type: struct
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0002", // Control Command Type: string
},
"d2d_trigger_by_electrical_conductivity": { // Conductivity Settings Type: struct
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0003", // Control Command Type: string
},
"d2d_trigger_deactivation_by_electrical_conductivity": { // Conductivity Release Settings Type: struct
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0004", // Control Command Type: string
},
"d2d_trigger_by_humidity": { // Humidity Settings Type: struct
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0005", // Control Command Type: string
},
"d2d_deactivation_by_humidity": { // Humidity Release Settings Type: struct
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0006", // Control Command Type: string
},
"temperature_calibration_settings": { // Temperature Type: struct
"enable": false, // Calibration Enable Type: bool
"value": 0 // Calibration Value Type: float Unit: ℃
},
"humidity_calibration_settings": { // Humidity Type: struct
"enable": false, // Calibration Enable Type: bool
"value": 0 // Calibration Value Type: float Unit: %
},
"electrical_conductivity_calibration_settings": { // Electrical Conductivity Type: struct
"enable": false, // Calibration Enable Type: bool
"value": 0 // Calibration Value Type: int Unit: us/cm
},
"data_storage_enable": false, // Data Storage Enable Type: bool
"retransmission_enable": false, // Data Retransmission Enable Type: bool
"retransmission_interval_settings": { // Retransmission Interval Settings Type: struct
"interval": 600 // Retransmission Interval Type: int Unit: s
},
"retrieval_interval": { // Retrieval Interval Settings Type: struct
"interval": 60 // Retrieval Interval Type: int Unit: s
}
}
}
Description
The following table provides the description and valid values for the configurable properties of EM500-SMTC-MEC20.
Parameter | Type | Description | |
---|---|---|---|
reporting_interval | Integer |
Specify the interval for data reporting (Unit: Second).
|
|
time_zone | Enum |
Specify the time zone for this device.
|
|
reset_collection_settings | Struct |
Sensor re-collection settings. |
|
times | Integer |
Specify the maximum number of re-collections after sensor data collection error.
|
|
interval | Integer |
Specify the interval of re-collections after sensor data collection error ( Unit : Second).
|
|
sensor_temperature_enable | Struct |
Temperature sensor collection settings. |
|
enable | Boolean |
Decide whether to enable the collection and report of temperature sensor. Valid value:
|
|
sensor_humidity_enable | Struct |
Soil moisture sensor collection settings. |
|
enable | Boolean |
Decide whether to enable the collection and report of soil moisture sensor. Valid value:
|
|
sensor_electrical_conductivity_enable | Struct |
Electrical conductivity sensor collection settings. |
|
enable | Boolean |
Decide whether to enable the collection and report of conductivity sensor. Valid value:
|
|
collection_interval | Integer |
Specify the interval for collecting data (Unit: second).
|
|
electrical_conductivity_alarm_rule | Struct |
Conductivity Threshold Alarm settings. |
|
enable | Boolean |
Decide whether to enable electrical conductivity threshold alarm. Valid value:
|
|
condition | Enum |
Specify the conditions for triggering electrical conductivity threshold alarm. Valid value:
|
|
threshold_min | Integer |
Specify the minimum threshold for conductivity alarm ( Unit : us/cm).
|
|
threshold_max | Integer |
Specify the maximum threshold for conductivity alarm( Unit : us/cm).
|
|
temperature_alarm_rule | Struct |
Temperature Threshold Alarm settings. |
|
enable | Boolean |
Decide whether to enable temperature threshold alarm. Valid value:
|
|
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).
|
|
temperature_mutation_alarm_rule | Struct |
Temperature Change Alarm settings. |
|
enable | Boolean |
Decide whether to enable temperature change alarm. Valid value:
|
|
threshold_max | Float | Specify the change value for temperature alarm (Unit: °C).
|
|
humidity_alarm_rule | Struct |
Soil Moisture Threshold Alarm settings. |
|
enable | Boolean | Decide whether to enable soil moisture threshold
alarm. Valid value:
|
|
condition | Enum | Specify the conditions for triggering soil moisture threshold
alarm. Valid value:
|
|
threshold_min | Float |
Specify the minimum threshold for soil moisture alarm( Unit : %).
|
|
threshold_max | Float |
Specify the maximum threshold for soil moisture alarm( Unit : %).
|
|
alarm_times | Integer |
Specify the number of alarms.
|
|
alarm_deactivation_enable | Boolean |
Decide whether to enable alarm dismiss report. Valid value:
|
|
d2d_enable | Boolean |
Decide whether to enable Device-to-Device (D2D) communication for this device. Valid value:
|
|
d2d_key | String |
Note: This setting ONLY takes effect
when d2d_enable is set to
Specify the key for D2D
communication.true .
|
|
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:
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
control_command | String |
Specify the control command for D2D communication triggered by temperature reaching the threshold.
|
|
d2d_deactivation_by_temperature | 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:
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
control_command | String |
Specify the control command for D2D communication triggered by temperature outside the threshold.
|
|
d2d_trigger_by_temperature_mutation | Struct |
Settings of D2D communication triggered by temperature change alarms. |
|
enable | Boolean |
Decide whether to trigger D2D communication when the detected temperature changes the preset value. Valid value:
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
control_command | String |
Specify the control command for D2D communication triggered by temperature change alarm.
|
|
d2d_trigger_by_electrical_conductivity | Struct |
Settings of D2D communication triggered by conductivity reaching the threshold. |
|
enable | Boolean |
Decide whether to trigger D2D communication when the detected conductivity reached the threshold. Valid value:
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
control_command | String |
Specify the control command for D2D communication triggered by conductivity reaching the threshold.
|
|
d2d_trigger_deactivation_by_electrical_conductivity | Struct |
Settings of D2D communication triggered by conductivity outside the threshold. |
|
enable | Boolean | Decide whether to trigger D2D communication when the detected
conductivity is outside the threshold. Valid value:
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
control_command | String |
Specify the control command for D2D communication triggered by conductivity outside the threshold.
|
|
d2d_trigger_by_humidity | Struct | Settings of D2D communication triggered by soil moisture reaching the threshold. | |
enable | Boolean | Decide whether to trigger D2D communication when the detected
soil moisture reached the threshold. Valid value:
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
control_command | String |
Specify the control command for D2D communication triggered by soil moisture reaching the threshold.
|
|
d2d_deactivation_by_humidity | Struct |
Settings of D2D communication triggered by soil moisture outside the threshold. |
|
enable | Boolean | Decide whether to trigger D2D communication when the detected
soil moisture is outside the threshold. Valid value:
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
control_command | String |
Specify the control command for D2D communication triggered by soil moisture outside the threshold.
|
|
temperature_calibration_settings | Struct |
Temperature calibration settings. |
|
enable | Boolean |
Decide whether to enable temperature calibration. Valid value:
|
|
value | Float |
Specify the calibration value (Unit: °C).
|
|
humidity_calibration_settings | Struct |
Soil moisture calibration settings. |
|
enable | Boolean |
Decide whether to enable soil moisture calibration. Valid value:
|
|
value | Float |
Specify the calibration value( Unit : %).
|
|
electrical_conductivity_calibration_settings | Struct |
Electrical conductivity calibration settings. |
|
enable | Boolean |
Decide whether to enable electrical conductivity calibration. Valid value:
|
|
value | Integer |
Specify the calibration value( Unit : us/cm).
|
|
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.
Note: This setting ONLY takes effect
when data_storage_enable is set to
true .Valid value:
|
|
retransmission_interval_settings | Struct |
Note: 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).
|
|
retrieval_interval | Struct |
Retrieval Interval Settings. |
|
interval | Integer |
Specify the time interval for data retrieval (Unit:
Second).
|