Skip to content

MLProduct Commands

For full list of commands, see MLProduct

Unlock Commands: (For versions 2.0+)

unlock

public void unlock(int seconds,
                   MLCommandCallback<java.lang.String> callback)

Unlocks the Primary Lock mechanism Parameters: seconds - Duration before automatic relock in seconds or auto-relock configuration from the lock if 0 is passed callback - the result of the

unlock

public void unlock(com.masterlock.mlbluetoothsdk.lockstate.MechanismOptions 
                    mechanism, MLCommandCallback<java.lang.String> callback)

Parameters: mechanism - Which mechanism to unlock Primary/Secondary

Deprecated unlock commands (Versions before 2.0)

unlockPrimaryLock

@Deprecated
public void unlockPrimaryLock(int howLong MLCommandCallback<java.lang.String> callback)

Deprecated. For LockState delegate to work, instead use MLProduct.unlock(MechanismOptions mechanism, int seconds, MLCommandCallback callback) Add the command to unlock the primary lock. Note that this command will force a disconnect after it completes. Note that on LockBoxes, the ‘Primary’ Lock is the door

Parameters:

callback - returns “Success” if successful

unlockSecondaryLock

@Deprecated
public void unlockSecondaryLock(int howLong,
                                            MLCommandCallback<java.lang.String> callback)
Deprecated. For LockState delegate to work, instead use MLProduct.unlock(MechanismOptions mechanism, int seconds, MLCommandCallback callback)

Add the command to unlock the secondary lock. Note that this command will force a disconnect after it completes. Note that on LockBoxes, the ‘Secondary’ Lock is the shackle.

Parameters:

callback - returns “Success” if successful