VibrationSensor
1.VibrationSensor.getState
Get Vibration Sensor's State
Param | Value | Desc |
---|---|---|
method | VibrationSensor.getState | Get 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 |
Param | Value | Desc |
---|---|---|
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
<Same as 1.VibrationSensor.getState>