Open Platform
Skip to content

Lock Initialize ​

1、Start scan and in onScanLockSuccess callback select the lock witch is in setting mode to init.

c
TTLockClient.getDefault().initLock(device, new InitLockCallback() {
    @Override
    public void onInitLockSuccess(String lockData) {
        //init success
    }
 
    @Override
    public void onFail(LockError error) {
        //failed                
    }
});

2、Request cloud API:Init Lock in the onInitLockSuccess callback method to upload the lock data to cloud server and bind it to a user account.

CopyRight © 2012-2026 TTLock.All Rights Reserved