React Native BLE library
canSendWriteWithoutResponse
would return false on iOS.Breaking changes
Other:
requestConnectionPriority
function which increases or decreases connection interval setting on Android Lollipop devices or above.connectionPriority
option to connection options which calls above function just after the connection is established.scanMode
and callbackType
properties to scan options for Android.enable
and disable
functions to enable/disable Bluetooth on Android.transactionId
argument to discoverAllServicesAndCharacteristicsForDevice
.errorCodesToMessagesMapping
property to BleManagerOptions
to be able to override custom BleError messages.cancelDeviceConnection
documentation.writeWithoutResponse
implementation on iOS to use canSendWriteWithoutResponse
if available starting from iOS 11.Breaking changes:
Other:
deviceServicesNotDiscovered
implementation on Android.0.9.0
Breaking changes:
error.errorCode == BleErrorCode.OperationCancelled
instead of error.message == 'Cancelled'
error.errorCode == BleErrorCode.BluetoothManagerDestroyed
instead of error.message == 'Destroyed'
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:
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.BleModuleInterface
type to fix flow errors related to usage.refreshGatt
option to connectToDevice
function.localName
advertisement data type on Android.devices
and connectedDevices
functions.requiresMainQueueSetup
.timeout
option to connectToDevice
.Docs:
Breaking changes:
characteristic.isIndictable
is now characteristic.isIndicatable
.Other:
bash
dependency in postinstall script.--cache-builds
option only when specific version of carthage is available.--no-build
option to be able to reuse prepackages frameworks....
"react-native-ble-plx": {
"carthage": false
}
...
cancelDeviceConnection
on Android.mtu
property for Device
object which allows you to get current BLE MTU of device.requestMTUForDevice
which allows to negotiate BLE MTU of device if it is possible.