Skip to main content

Lock

1.Lock.getState

Get Current Lock State

BDDP

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

BUDP

ParamValueDesc
data.state<String,Necessary>Current lock state;"Locked"
data.battery<String,Necessary>The battery of the lock;Voltage now;will change to per later

2.Lock.lock

Lock Lock

BDDP

ParamValueDesc
methodLock.lockLock Lock
targetDevice<String,Necessary>DeviceId of the Lock you use;
token<String,Necessary>Net token of the Lock you use;

BUDP

ParamValueDesc
data.state<String,Necessary>Current lock state;"Locked"
data.battery<String,Necessary>The battery of the lock;Voltage now;will change to per later