Hi All,
I’ve been developing an Ionic(V4)/Angular 8 app using the Bluetooth serial module and everything works fine, the app can use the Bluetooth Serial Library to scan and connect to devices. However, 2 methods are missing from the library that are included in the original Github:
unsubscribeRawData()
unsubscribe()
This is a problem as when trying to disconnect from one device and connect with another the library stays subscribed to the data stream and consequently receives data from 2 devices. I added this to the Github repo as an issue and got this response from Don, the Github owner:
don commented 24 days ago
The functions are available in this plugin, they’re missing from the Ionic wrapper.
The best solution is to add them to the Ionic wrapper and send them a pull request. Alternately you can access the plugin directly from ionic and just call the functions.
Is it possible to get the Libary updated to include the methods in the Ionic Wrapper? Or am I missing something and is there a work-around to unsubscribe from previously subscribed data streams.
Any help or guidance on this matter is much appreciated
Thanks!