I have a strange problem with BuildComDbc()....
When using the MicroSoft Bluetooth Stack if I try:
IF BuildCommDcb( "COM"+alltrim(str(nComPort))+":9600,N,8,1", @cDcb )
Endif
It returns .f.
On the Toshiba Bluetooth Stack it returns .t.
Here is the strange part....
If I remove the "IF" and just try "BuildCommDcb( "COM"+alltrim(str(nComPort))+":9600,N,8,1", @cDcb )"
then continue with my connection it does connect to the COM port BUT, if I connect and disconnect 4 times in a row the software will freeze when I do a:
WriteComm( nComm, Hex2Str("027004020861DF03"))
Again, using the Toshiba Bluetooth stack I can connect/disconnect as many times as I want without any problems.
Any ideas?
Is there any other way to connect to a Bluetooth Serial Port (other lib maybe) ???