BlueTooth: KerrCouldNotConnect
| Wed, 2003-10-29 12:28 | |
|
Hi all, I'm trying to open a bluetooth connection for a P800, but it returns me a KErrCouldNotConnect: this is the code:
CQBTUISelectDialog* dialog = new (ELeave) CQBTUISelectDialog(remoteDevAddr, remoteDevName, remoteDevClass, CQBTUISelectDialog::EQBTDeviceFilterAll, //device filter serviceFilter); if (dialog->LaunchSingleSelectDialogLD()) { RSocket btSocket; TBTSockAddr remoteSockAddr; remoteSockAddr.SetPort(tcpPort); remoteSockAddr.SetBTAddr(remoteDevAddr); TInt retValue=0; retValue=btSocket.Open(socketServ, KBTAddrFamily, KSockSeqPacket, KL2CAP); User::LeaveIfError(btSocket.Open(socketServ, KBTAddrFamily, KSockSeqPacket, KL2CAP)); TRequestStatus requestStatus; btSocket.Connect(remoteSockAddr, requestStatus); User::WaitForRequest(requestStatus); /****AND here launch the error********/ What does it means? How can I connect my socket?? Claudia |
|






Forum posts: 40
did you call for socketServ.Connect() before the code you attached?
What is the device you're trying to connect to? is it possible it's not listening ?
regards
Forum posts: 11
I'm trying to open a connection between p800 and a nokia 7650.
Cla
Forum posts: 40
SO WHAT'S THE MATTER?!?!!
Cla
Forum posts: 40
I'm running out of ideas but here are two more possibilities:
some other application is catching the L2CAP port, or... the bluetooth is closed on the phone?...
Forum posts: 11
Programmation should not have mistrerious ways!!!!
Claudia
Forum posts: 308
How can i do it ?
Thanks
Amit