Skip to main content

InfraredForward

1.InfraredForward.getState

Get Current InfraredForward State

BDDP

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

BUDP*

Same as InfraredForward.getVersion

2.InfraredForward.learnCode

Learn code of Infrared Remoter

BDDP

ParamValueDesc
methodInfraredForward.openLearn code of Infrared Remoter
targetDevice<String,Necessary>DeviceId of the InfraredForward you use;
token<String,Necessary>Net token of the InfraredForward you use;
params.panelIndex<Integer,Necessary>The index of Remote Panel.value(0 - 3)means you can create 4 panels at most;
params.buttonIndex<Integer,Necessary>The index of Panel's button.value(0 - 15)means you can create 16 buttons for a panel at most;

BUDP*

ParamValueDesc
data.isSuccess<Boolean,Necessary>Result of learn code

3.InfraredForward.sendCode

Send Infrared Code

BDDP

ParamValueDesc
methodInfraredForward.sendCodeSend Infrared Code
targetDevice<String,Necessary>DeviceId of the InfraredForward you use;
token<String,Necessary>Net token of the InfraredForward you use;

| params.panelIndex | <Integer,Necessary> |The index of Remote Panel.| | params.buttonIndex | <Integer,Necessary> |The index of Panel's button. |

BUDP*

ParamValueDesc
data.state<String,Necessary>result;Success/Failed/NotLearn

4.InfraredForward.getVersion

Get firmware info

BDDP

ParamValueDesc
methodInfraredForward.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;

5.InfraredForward.startUpgrade

Start Upgrade

BDDP

ParamValueDesc
methodInfraredForward.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;