How to directly write data via Bluetooth? #584
-
I used old BluetoothSerial cordova plugin The sample of code was
I decided to switch to capacitor plugins, since it is recommended by ionic, but don't understand how to do same with bluetooth-le capacitor plugin. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
and where to take UID of services? I see it hardcoded in the example.
|
Beta Was this translation helpful? Give feedback.
-
This plugin only supports Bluetooth Low Energy, not Bluetooth classic / serial. For Bluetooth classic there is e.g. this plugin: https://github.com/matfire/ionic_bluetooth_classic (I have never used it). For the UUIDS, they are part of Bluetooth Low Energy. Some of them are assigned by the specification, see https://www.bluetooth.com/specifications/assigned-numbers/. Others are just chosen values by the peripheral Bluetooth device. |
Beta Was this translation helpful? Give feedback.
This plugin only supports Bluetooth Low Energy, not Bluetooth classic / serial.
For Bluetooth classic there is e.g. this plugin: https://github.com/matfire/ionic_bluetooth_classic (I have never used it).
For the UUIDS, they are part of Bluetooth Low Energy. Some of them are assigned by the specification, see https://www.bluetooth.com/specifications/assigned-numbers/. Others are just chosen values by the peripheral Bluetooth device.