InfraredForward
1.InfraredForward.getState
Get Current InfraredForward State
Param | Value | Desc |
---|---|---|
method | InfraredForward.getState | Get 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
Param | Value | Desc |
---|---|---|
method | InfraredForward.open | Learn 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*
Param | Value | Desc |
---|---|---|
data.isSuccess | <Boolean,Necessary> | Result of learn code |
3.InfraredForward.sendCode
Send Infrared Code
Param | Value | Desc |
---|---|---|
method | InfraredForward.sendCode | Send 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*
Param | Value | Desc |
---|---|---|
data.state | <String,Necessary> | result;Success/Failed/NotLearn |
4.InfraredForward.getVersion
Get firmware info
Param | Value | Desc |
---|---|---|
method | InfraredForward.getVersion | Get firmware info; |
targetDevice | <String,Necessary> | DeviceId of this device; |
token | <String,Necessary> | Net Token of this device; |
Param | Value | Desc |
---|---|---|
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
Param | Value | Desc |
---|---|---|
method | InfraredForward.startUpgrade | Start 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; |
Param | Value | Desc |
---|---|---|
data.isStarted | <Boolean,Necessary> | Is upgrading started; |