Bluetooth Problem Symbian s60 9.1 Edge_SDK_2_80

Hello All
I’m trying to setup a listening server using Bluetooth on Symbian s60 9.1 (device Nokia N71).
The problem is that the client devices when they connecting to server (Nokia N71), they disconnecting immediately.
I tried two different devices as client, a)PC b)GPS
When I’m looking for Bluetooth services from the PC, I’m seeing Edge Serial Port (probably means that server is OK), but when I connect throw that service, the PC show me that is connecting and then immediately disconnect.
I read the tutorial from Edge (Connections and protocols) and I’m using the same code.
if (ecd.net[0]->Init(ECONN_BLUETOOTH, this) == E_OK)
{
if (!ecd.net[0]->SearchHost(NULL, 4))
return(false);
}
else
return(false);
I know from debugger that (ecd.net[0]->Init(ECONN_BLUETOOTH, this) == E_OK) return true and ecd.net[0]->SearchHost(NULL, 4) return true
Tutorial says that “When the server has been set up, a message is posted to the network message callback function” but I never take that message (ENET_RUNNINGSERVER)
Bluetooth is very important for me and my company because the project uses it. Please Help!
Thanks!
I’m trying to setup a listening server using Bluetooth on Symbian s60 9.1 (device Nokia N71).
The problem is that the client devices when they connecting to server (Nokia N71), they disconnecting immediately.
I tried two different devices as client, a)PC b)GPS
When I’m looking for Bluetooth services from the PC, I’m seeing Edge Serial Port (probably means that server is OK), but when I connect throw that service, the PC show me that is connecting and then immediately disconnect.
I read the tutorial from Edge (Connections and protocols) and I’m using the same code.
if (ecd.net[0]->Init(ECONN_BLUETOOTH, this) == E_OK)
{
if (!ecd.net[0]->SearchHost(NULL, 4))
return(false);
}
else
return(false);
I know from debugger that (ecd.net[0]->Init(ECONN_BLUETOOTH, this) == E_OK) return true and ecd.net[0]->SearchHost(NULL, 4) return true
Tutorial says that “When the server has been set up, a message is posted to the network message callback function” but I never take that message (ENET_RUNNINGSERVER)
Bluetooth is very important for me and my company because the project uses it. Please Help!
Thanks!