evothings / cordova-ble

Bluetooth Low Energy plugin for Cordova
http://www.evothings.com/
Apache License 2.0
242 stars 103 forks source link

Support for pairing/bonding #122

Closed ghost closed 7 years ago

ghost commented 7 years ago

Task is to implement support for bonding on Android and iOS.

ghost commented 7 years ago

Getting error 133 on Android in the process on testing connecting to a bonded device.

Interesting info on error 133:

https://github.com/NordicSemiconductor/Android-nRF-Toolbox/issues/9 https://github.com/NordicSemiconductor/Android-DFU-Library/issues/1 http://stackoverflow.com/questions/23762278/status-codes-132-and-133-from-ble112 https://devzone.nordicsemi.com/question/28473/error-on-writing-characteristic-133/ http://stackoverflow.com/questions/32070944/gatt-writedescriptor-error-status-callback-when-using-bonded-device https://github.com/NordicSemiconductor/Android-nRF-Toolbox/issues/9#issuecomment-132191406

List of error codes in the Android implementation:

https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/android-5.1.1_r13/stack/include/gatt_api.h

Possibly helpful for error 133:

http://stackoverflow.com/questions/25330938/android-bluetoothgatt-status-133-register-callback http://stackoverflow.com/questions/28894111/android-ble-gatt-error133-on-connecting-to-device http://stackoverflow.com/questions/20839018/while-connecting-to-ble113-from-android-4-3-is-logging-client-registered-waiti/23478737#23478737 http://stackoverflow.com/questions/27280402/every-connection-request-is-being-treated-as-direct-connect-request-android-bl

Overview of BLE, lists Android issues on Slide 33:

http://www.slideshare.net/yeokm1/introduction-to-bluetooth-low-energy

ghost commented 7 years ago

Info on bonding on Android:

http://stackoverflow.com/questions/18197444/android-bluetooth-low-energy-pairing http://stackoverflow.com/questions/24645519/android-how-can-i-make-ble-device-to-paired-device-bonded

ghost commented 7 years ago

Related issue: https://github.com/evothings/cordova-ble/issues/121

ghost commented 7 years ago

Here is a new APK for Android with the latest BLE plugin release 2.0.0: https://evothings.com/uploads/evothings-studio/viewer/EvothingsViewer_1.5.0_161012_1430.apk

ghost commented 7 years ago

Plugin version 2.0.0 now released with support for bonding. Closing this issue.