Skip to content

v0.9.0

Compare
Choose a tag to compare
@Cierpliwy Cierpliwy released this 06 Apr 11:43
· 490 commits to master since this release

0.9.0

Breaking changes:

  • Use error.errorCode == BleErrorCode.OperationCancelled instead of error.message == 'Cancelled'
  • Use error.errorCode == BleErrorCode.BluetoothManagerDestroyed instead of error.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
    version 0.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 in BleErrorCode).
    • 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 to connectToDevice function.
  • Parse short localName advertisement data type on Android.
  • Don't emit state changes when BLE is not supported.
  • Added devices and connectedDevices functions.
  • Fixed iOS issue related to requiresMainQueueSetup.
  • Added timeout option to connectToDevice.

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