v0.9.0
0.9.0
Breaking changes:
- Use
error.errorCode == BleErrorCode.OperationCancelled
instead oferror.message == 'Cancelled'
- Use
error.errorCode == BleErrorCode.BluetoothManagerDestroyed
instead oferror.message == 'Destroyed'
- Reverted implementation of
monitorCharacteristicForDevice
to properly write to descriptor when last listener is unsubscribed on Android. If you expect to get new notifications as soon as you subscribe for them please use
version0.8
for the time being, as regression is expected.
Other:
- All API calls return
BleError
instance in case of errors which contains additional fields:errorCode
- returns API independent and stable error code (defined inBleErrorCode
).attErrorCode
(optional) - platform independent ATT error code.iosErrorCode
(optional) - iOS specific error code.androidErrorCode
(optional) - Android specific error code.reason
(optional) - platform specific message.
- Updated
BleModuleInterface
type to fix flow errors related to usage. - Added
refreshGatt
option toconnectToDevice
function. - Parse short
localName
advertisement data type on Android. - Don't emit state changes when BLE is not supported.
- Added
devices
andconnectedDevices
functions. - Fixed iOS issue related to
requiresMainQueueSetup
. - Added
timeout
option toconnectToDevice
.
Docs:
- Updated dev dependencies to the latest ones.
- Added Expo section to README file.
- Added About this library section to README file.
- Updated Wiki pages