|
校准
-
mTTLockAPI.connect(mKey.getLockMac());
-
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid为用户授权的openid,读取操作记录用来标识哪个用户的操作
mTTLockAPI.setLockTime(extendedBluetoothDevice, uid, curKey.getLockVersion(), curKey.getUnlockKey(), System.currentTimeMillis(), curKey.getLockFlagPos(), curKey.getAesKeystr(), curKey.getTimezoneRawOffset());
}
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid equivalent to openid. In operateLog identify user
mTTLockAPI.setLockTime(extendedBluetoothDevice, uid, curKey.getLockVersion(), curKey.getUnlockKey(), System.currentTimeMillis(), curKey.getLockFlagPos(), curKey.getAesKeystr(), curKey.getTimezoneRawOffset());
}
-
@Override
public void onSetLockTime(ExtendedBluetoothDevice extendedBluetoothDevice, Error error) {
// 查看锁时间
}
@Override
public void onSetLockTime(ExtendedBluetoothDevice extendedBluetoothDevice, Error error) {
// Watch lock time
}
|