cordova-plugin-bluetoothle icon indicating copy to clipboard operation
cordova-plugin-bluetoothle copied to clipboard

getService "String does not represent a valid UUID"

Open DexterHill0 opened this issue 4 years ago • 0 comments

I needed to get the service UUIDs so I could write to the device. I used the services function to do that:

await ble.services({
    address: address
}).then((data) => {
	console.log(data); //Logging as test
}).catch(err => {
	console.error(err);
});

The address I am putting in is 051916D5-335C-3EE6-4EC3-A148093C4CA1 and although the output I am getting seems to be right:

{"status":"services","services":["4FAFC201-1FB5-459E-8FCC-C5C9C331914B"],"name":"ESP32","address":"051916D5-335C-3EE6-4EC3-A148093C4CA1"}

It errors out on line 3538 in getService in the file BluetoothLEPlugin.m saying:

Thread 1: "String  does not represent a valid UUID"

Am I doing something wrong or is this an issue?

DexterHill0 avatar Dec 24 '20 22:12 DexterHill0