-
Notifications
You must be signed in to change notification settings - Fork 616
Open
Description
I am calling your library (version 1.7.8) function
ble.withPromises.connect(scannedDeviceId, mySuccessCallbackFunction, myErrorCallbackFunction);
also tried
ble.connect(scannedDeviceId, mySuccessCallbackFunction, myErrorCallbackFunction);
Both with the same behaviour (see case 4).
I am connecting to a ble device from our capacitor (version 6.0.0) app on an iPhone or android phone (iPhone 13 mini or Samsung Galaxy S10e).
Cases:
- iOS and Android phone: returning
PeripheralDataExtendeddata inmySuccessCallbackFunctionsuccessfully if ble is enabled. - iOS and Android phone: entering
myErrorCallbackFunctionif ble is disabled with errorMessage "Ble is disabled" from BLEError interface. This shows thatmyErrorCallbackFunctionis working. - Android: entering
myErrorCallbackFunctionif ble is enabled and peripheral is not reachable (e.g. distance from phone to ble device) - errorMessage "Peripheral disconnected" from BLEError interface - iOS: not entering
myErrorCallbackFunctionif ble is enabled and peripheral is not reachable. There is no response from neither callback function. Also there is no "Peripheral disconnected" errorMesage like in Android. Is this intended behaviour, or some bug in theconnect()function?
Thanks for your help.
Reactions are currently unavailable