Downlink Commands for Network Parameters
This section describes the JSON format for downlink commands for network parameters.
Configure Communication Parameters
| Name | Example |
|---|---|
| communication_mode |
Communication Mode is BLE. {
"communication_mode": 0 //0=BLE, 1=LoRa, 2=BLE+LoRa
}
|
| reporting_interval |
LoRa Reporting Interval is 10 minutes. {
"reporting_interval": {
"lora": {
"minutes_of_time": 10 //Unit: min, range: 1-1440
},
"ble_lora": {
"minutes_of_time": 10 //Unit: min, range: 1-1440
}
}
}
|
| period_pack_mode |
Periodic report mode is Only Configuration. {
"period_pack_mode": 1 //0=Only status (Default), 1=Only configuration, 2=Status + Configuration
}
|
| communicate_interval |
BLE Transfer Interval is 5 minutes for BLE mode, 10 minutes for BLE+LoRa mode. {
"communicate_interval": {
"ble": {
"minutes_of_time": 5 //Unit: min, range: 1-30
},
"ble_lora": {
"minutes_of_time": 10 //Unit: min, range: 1-30
}
}
}
|
Rejoin the Network
| Name | Example |
|---|---|
| reconnect |
Rejoin the Network. {
"reconnect": "yes"
}
|
Configure Milesight D2D Parameters
| Name | Example |
|---|---|
| d2d_send_config |
Enable D2D Data Transmission feature, enable LoRa uplink, and enable sending all data. {
"d2d_send_config.enable": 1
}
{
"d2d_send_config": {
"enable": 1, //0=Disable (Default), 1=Enable
"uplink": 1, //LoRa uplink, 0=Disable (Default), 1=Enable
"switch": { //0=Disable (Default), 1=Enable
"temp": 1,
"humi": 1,
"occupied": 1,
"system": 1,
"mode": 1,
"fan": 1,
"target": 1,
"plan": 1,
"reserved": 0
}
}
}
|