Downlink Commands for Network Parameters
This section describes the downlink commands for network settings.
Multicast Group Enable/Disable
| Name | Example |
|---|---|
| multicast_group_config | Enable group 1 and
3.{
"multicast_group_config": {
"group1_enable": "enable",
"group2_enable": "disable",
"group3_enable": "enable",
"group4_enable": "disable"
}
}Disable group
1.{
"multicast_group_config": {
"group1_enable": "disable"
}
} |
Configure Milesight D2D Parameters
| Name | Example |
|---|---|
| d2d_master_ids | Add/delete a D2D data sending
device.{
"d2d_master_ids": [
{
"id": 1, //Range: 1-5
"dev_eui": "24e1241234567890" //Dev EUI, all 0 means delete
}
]
} |
| d2d_master_enable, d2d_slave_enable | Enable D2D
controller.{
"d2d_master_enable": "enable"
}Disable D2D
agent.{
"d2d_slave_enable": "disable"
}Enable D2D controller and D2D
agent.{
"d2d_master_enable": "enable",
"d2d_slave_enable": "enable"
} |
| d2d_master_config | D2D controller setting: Enable to
send a control command ff01 when switching schedule to
Wake.{
"d2d_master_config": [
{
"plan_type": "wake", //wake, away, home, sleep, occupied, unoccupied, eco
"enable": "enable",
"d2d_cmd": "ff01", //Hex control command
"lora_uplink_enable": "enable",
"time_enable": "enable", //Invalid
"time": 0 //Invalid
}
]
} |
| d2d_slave_config | D2D agent setting 1: Add a rule to
switch system on after receiving command
0000.{
"d2d_slave_config": [
{
"id": 1, //Command ID, range: 0-15
"enable": "enable",
"d2d_cmd": "0000", //Hex control command
"action": {
"action_type": "power", //system status
"system_status": "on" //on,off
}
}
]
}D2D agent setting 2: Add a rule to switch to Away
schedule after receiving command
0000.{
"d2d_slave_config": [
{
"id": 1, //Command ID, range: 0-15
"enable": "enable",
"d2d_cmd": "0000", //Hex control command
"action": {
"action_type": "plan", //Schedule type
"plan_type": "away" //wake, away, home, sleep, occupied, unoccupied, eco
}
}
]
} |