Open Platform
Skip to content

Records ​

LogType ALL - all the operation record from lock is initialized. LogType.NEW - only the new added operation record from last time you get log.

c
TTLockClient.getDefault().getOperationLog(LogType.NEW, mCurrentLock.getLockData(),mCurrentLock.getLockMac(), new GetOperationLogCallback() {
    @Override
    public void onGetLogSuccess(String log) {
        makeToast("Get log success!");
        Log.d("OMG","===log==" + log);
    }
 
    @Override
    public void onFail(LockError error) {
        makeErrorToast(error);
    }
});
CopyRight © 2012-2026 Sciener.All Rights Reserved