Hi there,
I have a problem with connecting my n95 with widcomm bt stack based application. Always after calling socket.Connect(addr, status) method i receive the dialog:
enter 10390323-digit passcode for.../*host name*/
I use this code:
TBuf<30> temp_buf;
temp_buf.AppendNum(addr.Port());
TRequestStatus status;
CEikonEnv::Static()->InfoWinL(_L("Openning port"), temp_buf);
User::LeaveIfError(iSocket.Open(iSocketServ,KBTAddrFamily,KSockStream,KRFCOMM));
iSocket.Connect(addr,status);
//here the dialog appears
User::WaitForRequest(status);
CEikonEnv::Static()->InfoWinL(_L("connected"), _L("con"));
if (status == KErrNone)
{
// Write some simple data
_LIT8(KDataToWrite,"01234");
iSocket.Write(KDataToWrite,status);
User::WaitForRequest(status);
CEikonEnv::Static()->InfoWinL(_L("data"), _L("sent"));
}
else
{
temp_buf.AppendNum(status.Int());
CEikonEnv::Static()->InfoWinL(_L("not sent"), temp_buf);
}
PC application is based on Bluetooth Chat (but with changed service guid and name). I even developed my own app from the beginning and the result is the same. security in the PC app is set to BTM_SEC_NONE
Could you help?
PS: I'd like to add, that I tried to connect two n95 and there were no prompt



