Open Platform
Skip to content

Delete Lock ​

1、Reset lock

c
TTLockClient.getDefault().resetLock(mCurrentLock.getLockData(), mCurrentLock.getLockMac(),new ResetLockCallback() {
    @Override
    public void onResetLockSuccess() {
        makeToast("-lock is reset and now upload to  server -");
        uploadResetLock2Server();
    }
 
    @Override
    public void onFail(LockError error) {
        makeErrorToast(error);
    }
});

2、Request cloud API:Delete Lock in the onResetLockSuccess callback method to delete the lock from the cloud server.

CopyRight © 2012-2026 TTLock.All Rights Reserved