Skip to main content

MultiOutlet

1.MultiOutlet.getState

Get Current State

BDDP

ParamValueDesc
methodMultiOutlet.getStateGet Current State
targetDevice<String,Necessary>DeviceId of the MultiOutlet you use;
token<String,Necessary>Net token of the MultiOutlet you use;

BUDP

ParamValueDesc
data.state<List<String>,Necessary>State of device's sockets,["closed","open"];
data.delays[index].on<Integer,Necessary>The remain time of Delay ON;Unit of minute;0 is OFF
data.delays[index].off<Integer,Necessary>The remain time of Delay OFF;Unit of minute;0 is OFF
data.version<String,Necessary>Firmware Version of device
data.tz<Integer,Necessary>Timezone of device. -12 ~ 12

2.MultiOutlet.setState

Set MultiOutlet's State

BDDP

ParamValueDesc
methodMultiOutlet.setStateSet MultiOutlet's State
targetDevice<String,Necessary>DeviceId of the MultiOutlet you use;
token<String,Necessary>Net token of the MultiOutlet you use;
params.chs<Integer,Necessary>Mask of sockets.[0x01 ~ 0xFF]; For Example: 0x0A = (1<<1 | 1<<3)) = Plug1 & Plug3 Selected, OxFF means all sockets selected
params.state<String,Necessary>Set state of device.["close","open"];

BUDP

ParamValueDesc
data.state<List<String>,Necessary>State of device's sockets,["closed","open"];

3.MultiOutlet.setDelay

Delay to turn on MultiOutlet.

BDDP

ParamValueDesc
methodMultiOutlet.setDelayDelay to turn on MultiOutlet.
targetDevice<String,Necessary>DeviceId of the MultiOutlet you use;
token<String,Necessary>Net token of the MultiOutlet you use;
params.delays[*]<Array,Necessary>Delays
params.delays[*].ch<Integer,Optional>Index of socket;
params.delays[*].on<Integer,Optional>The time you want to Delay ON;Unit of minute;0 is cancel delay;
params.delays[*].off<Integer,Optional>The time you want to Delay OFF;Unit of minute;0 is cancel delay;

BUDP

ParamValueDesc
data.delays[index].on<Integer,Necessary>The remain time of Delay ON;Unit of minute;0 is OFF
data.delays[index].off<Integer,Necessary>The remain time of Delay OFF;Unit of minute;0 is OFF

4.MultiOutlet.getSchedules

Get Schedule List

BDDP

ParamValueDesc
methodMultiOutlet.getSchedulesGet Schedule List.
targetDevice<String,Necessary>DeviceId of the MultiOutlet you use;
token<String,Necessary>Net token of the MultiOutlet you use;

BUDP

ParamValueDesc
data[index].ch<Integer,Necessary>Index of socket ;
data[index].isValid<Boolean,Necessary>Enabled/Disabled ;
data[index].index<Integer,Necessary>Index of this record ;
data[index].on<String,Optional>Time to turn on; HH:mm
data[index].off<String,Optional>Time to turn off; HH:mm
data[index].week<Integer,Necessary>mask of effected days(Sunday to Saturday)

5.MultiOutlet.setSchedules

Set Schedule

BDDP

ParamValueDesc
methodMultiOutlet.setSchedulesSet Schedule.
targetDevice<String,Necessary>DeviceId of the MultiOutlet you use;
token<String,Necessary>Net token of the MultiOutlet you use;
params.sches<Array<Schedule>Map<int,Schedule>,Necessary>
params.sches[index].ch<Integer,Necessary>Index of socket ;
params.sches[index].isValid<Boolean,Necessary>Enabled/Disabled ;
params.sches[index].index<Integer,Necessary>Index of this record ;
params.sches[index].on<String,Necessary>Time to turn on; HH:mm
params.sches[index].off<String,Necessary>Time to turn off; HH:mm
params.sches[index].week<Integer,Necessary>mask of effected days(Sunday to Saturday)

index from "0" to "9"

BUDP

Same as MultiOutlet.getSchedules

6.MultiOutlet.getVersion

Get firmware info

BDDP

ParamValueDesc
methodMultiOutlet.getVersionGet firmware info;
targetDevice<String,Necessary>DeviceId of this device;
token<String,Necessary>Net Token of this device;

BUDP

ParamValueDesc
data.version<String,Necessary>Current Version;
data.newVersion.versionId<String,Optional>Id of the newest version;
data.newVersion.versionCode<String,Optional>Code of the newest version;
data.newVersion.fileSize<String,Optional>File Size of the newest version;

7.MultiOutlet.startUpgrade

Start Upgrade

BDDP

ParamValueDesc
methodMultiOutlet.startUpgradeStart Upgrade
targetDevice<String,Necessary>DeviceId of this device;
token<String,Necessary>Net Token of this device;
params.versionId<String,Necessary>Version Id you want to upgrade;

BUDP

ParamValueDesc
data.isStarted<Boolean,Necessary>Is upgrading started;

8.Callbacks

You can receive it with Http Callback API or MQTT report topic

BUDP

<Same as 1.MultiOutlet.getState>