Skip to main content

SmartRemoter

1.SmartRemoter.getState

Get last reported state of Smart Remoter

BDDP

ParamValueDesc
methodSmartRemoter.getStateGet Smart Remoter's State
targetDevice<String,Necessary>DeviceId of the Sensor you use;
token<String,Necessary>Net token of the Sensor you use; You can get it here

BUDP

ParamValueDesc
data.state.event<Object,Optional>The last reported event
data.state.event.keyMask<Integer,Necessary>Triggered keys of event. bits 0-7 means keys 0-7
data.state.event.type<String,Necessary>The type of event,["Press","LongPress"]
data.state.battery<Integer,Necessary>Level of device's battery, 0 to 4 means empty to full
data.state.version<String,Necessary>Firmware Version of device
data.reportAt<Date,Necessary>Time of reported
data.deviceId<String,Necessary>Id of device

2.Callbacks

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

BUDP

<Same as 1.SmartRemoter.getState>