'Get bluetooth service and characteristic from SPP UUID
I am using the plugin cordova-plugin-bluetoothle.
I want to subscribe to a device whose SPP UUID is 00001101-0000-1000-8000-00805F9B34FB (a well-known SPP UUID according to the official Android documentation )
However, with the plugin cordova-plugin-bluetoothle we need to have the service's UUID and the characteristic's UUID to subscribe to the device.
I tried as follow:
const params = {
address: this.device_address,
service: '00001101-0000-1000-8000-00805f9b34fb',
characteristic: '00001101-0000-1000-8000-00805f9b34fb',
};
return this.ble.subscribe(params);
But I then I get the error Service not found
I would like to know how could I get the service and the characteristic from the SPP UUID?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
