Skip to main content

VibrationSensor

1.VibrationSensor.getState

Get Vibration Sensor's State

BDDP

ParamValueDesc
methodVibrationSensor.getStateGet Vibration Sensor'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.online<Boolean,Necessary>Is device online
data.state.state<String,Necessary>State of this device, ["normal", "alert"]
data.state.battery<String,Necessary>Level of device's battery, 0 to 4 means empty to full
data.state.alertInterval<Integer,Optional>Interval of Continuous Alert
data.state.noVibrationDelay<Integer,Optional>Time to enter No-Vibration state
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.VibrationSensor.getState>