Author Topic: EnumPairedDevices outputting null  (Read 237 times)

Offline mdlieder

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
EnumPairedDevices outputting null
« 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.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3389
  • Karma: 1000
    • Wireless Communication Libraries
Re: EnumPairedDevices outputting null
« Reply #1 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.

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14