Closed ghost closed 8 years ago
Added support for indications in this commit: https://github.com/evothings/cordova-ble/commit/2349d5f285c5454a10df740bbfe4b15d5b5bc6d2
Let me know what you think.
Here is a version of Evothings Viewer for Android that supports indications:
https://evothings.com/uploads/evothings-studio/viewer/EvothingsViewer_1.4.1_debug_160705_1637.apk
Updated version of Evothings Viewer for Android that supports indications:
https://evothings.com/uploads/evothings-studio/viewer/EvothingsViewer_1.4.1_debug_160705_2056.apk
Updated BLE plugin version 1.4.0:
https://github.com/evothings/cordova-ble/releases/tag/1.4.0
Updated EasyBLE library:
https://github.com/evothings/evothings-libraries/blob/master/libs/evothings/easyble/easyble.js
What remains before closing this issue is further testing.
I just discovered a bug that prevented automatic writing of the config descriptor from working when enabling notifications/indications.
The options parameter should also work now.
Published a new BLE plugin version 1.4.1 with a fix.
Release candidate of Evothings Viewer 1.4.1 for Android for testing available here:
https://evothings.com/uploads/evothings-studio/viewer/EvothingsViewer_1.4.1_160711_1608.apk
Contains the BLE plugin 1.4.1 with the bug fix for notifications.
Closing this issue, let me know if to reopen, if any problems should arise.
Reportedly works on iOS but not on Android (most likely because notify notifications are turned on automatically when enabling notifications, Android plugin code needs to be updated to also support indicate notifications).