|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by ronlep in Bluetooth, Windows ATL / WTL / COM Programming, C++ Programming Language
I have a bluetooth device which came with a dll. The dll requires a com port (0-9) to initate a connection. It aslo requires a pin. I'm trying to create a port which I can use to connect to device. I can lookup and discover the device no problem (using WSALookupServiceBegin...).
I'm setting the channel of my PORTEMUPPortParams to
pp.channel = RFCOMM_CHANNEL_MULTIPLE & 0xff;
My call to RegisterDevice does return a port but my call to CreateFile fails.
My question is what is the best way to create the port for my device and what (or how) do I deal with the pin. I'm new to bluetooth and can't seem to find complete examples as to what to do.
Thanks in advance,
Ron
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625