I had been using a value of 10 for timeout with : Radio.Discover(10, wclBluetoothDiscoverKind.dkClassic);
And changed it to 90, because I observed that sometimes discovery goes well past 30 seconds.
When set to 90:
Int res = Radio.Discover(90, wclBluetoothDiscoverKind.dkClassic);
res is 0 (good)
Callback wclBluetoothManager_OnDiscoveringStarted() is called (also, good)
But callback wclBluetoothManager_OnDiscoveringCompleted(), is called nearly immediately, with
an error value of :
Error=0x000000010000 One or more arguments passed into the method or function are invalid
I have switched back to using 10, but am not sure how to correctly use that parameter.