Henk, thanks for the code and the thoughts. I tried running the code but got the same result (I could select popups and buttons in the Discovery form, but not the devices is the list).


Maybe the place where you put it, is different? Do you have a running
EventLoop for example?

I'm not sure what you mean by a running event loop. I have an event loop for the form that invokes the Discovery form. When the user taps on my "Open" button the code I posted gets executed. My understanding is that the BtLibDiscoverSingleDevice form has it's own event loop, though I'm sure I'm missing something.


Rich

Richard Coutts wrote:

I thought I'd post this one more time before I had at it, since it's probably a little thing and I'm not looking forward to coding my own Discovery form.

I'm having some trouble with the Discovery form used when locating a
bluetooth device.  The function calls are...

SysLibFind(btLibName, &BTRefNum);
BtLibOpen(BTRefNum, false);
BtLibDiscoverSingleDevice(BTRefNum, NULL, NULL, 0, bluetoothAddr, false,
false);


None of them return an error.  The weird thing is that the code works
fine in the BtSerial sample where I got it, but when I insert it into my
code, the Discovery dialog comes up and all of the buttons work fine but
I can't select the device from the list.  When it runs in BtSerial, I
can tap on a device to highlight it, but not when running from my code.




-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to