Hello forums,
I am trying to scan in the background on iOS for Bluetooth. I know that you have to pass in a service UUID to do this, but I am having issues trying to get it to work with Plugin.BLE (https://github.com/xabre/xamarin-bluetooth-le).
I have a 2 byte array as my "UuidsComplete128Bit" (FE9A), which works when I pass it in natively, but I need to get it working with the plugin.
How would you convert it to a guid so that the plugin can handle it properly? I have tried a few different things, but my device does not get discovered.
Thank you for the help!
Answers
Just use Guid constructor which takes a byte array.
Guid guid = new Guid(binaryData);
Refer here : https://stackoverflow.com/a/10862181/8187800
Hello @ColeX
The problem with that is the byte array is only 2 bytes long.
Thank you for your reply.