Lock
1.Lock.getState
Get Current Lock State
Param | Value | Desc |
---|---|---|
method | Lock.getState | Get Current State |
targetDevice | <String,Necessary> | DeviceId of the Lock you use; |
token | <String,Necessary> | Net token of the Lock you use; |
Param | Value | Desc |
---|---|---|
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
Param | Value | Desc |
---|---|---|
method | Lock.lock | Lock Lock |
targetDevice | <String,Necessary> | DeviceId of the Lock you use; |
token | <String,Necessary> | Net token of the Lock you use; |
Param | Value | Desc |
---|---|---|
data.state | <String,Necessary> | Current lock state;"Locked" |
data.battery | <String,Necessary> | The battery of the lock;Voltage now;will change to per later |