Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: mdlieder on January 30, 2019, 09:08:23 PM

Title: EnumPairedDevices outputting null
Post by: mdlieder on January 30, 2019, 09:08:23 PM
Hello! I discovered during testing that wclBluetoothRadio.EnumPairedDevices(out Long[] devices) will set devices to null if no paired devices were found when using the Microsoft stack. I've coded around it, but wanted to let you know about that in case it was a bug -- it's unintuitive at the very least. If it's not a bug then I'd recommend updating the documentation to indicate that null is a possible value.
Title: Re: EnumPairedDevices outputting null
Post by: Mike Petrichenko on January 30, 2019, 09:35:41 PM
Hello,

It is so by design (return null when no paired devices). Yes Iagree without that it is unintuitive but it is so by historical reason.