open Lock
Sends an OPEN_LOCK (0x51) command to unlock the lock.
Parameters
The OPEN_LOCK command can use additional parameters:
BluetoothConstants.PARAM_NONE (0x00): Unlocks the lock. This is the default setting.
BluetoothConstants.PARAM_AUTO (0x01): Unlock from Auto Unlock feature.
BluetoothConstants.PARAM_FORCE (0x02): Forces lock to unlock the lock till jam.
BluetoothConstants.PARAM_WITHOUT_PULL (0x03): Opens the lock without Pull Spring, if configured. For more information, visit Tedee Lock BLE API documentation.
Before sending the command, this function checks the state of Bluetooth and location services:
RxBleClient.State.BLUETOOTH_NOT_AVAILABLE: Bluetooth is unavailable on the device.
RxBleClient.State.LOCATION_PERMISSION_NOT_GRANTED: Required location permissions are not granted.
RxBleClient.State.BLUETOOTH_NOT_ENABLED: Bluetooth is not enabled.
RxBleClient.State.LOCATION_SERVICES_NOT_ENABLED: Location services are disabled. If any preconditions are not met, onError with BluetoothDisabled is called to handle the situation. Otherwise (i.e., RxBleClient.State.READY),
lockConnectionWrapper?.openLock(<param>)
will be called.