Hi,
I am trying to get a serial port service up and running but fail to get the connection accepted. The server is running on a WM6 and listens for connection attempts from another (closed) device which requires a special service name and service level security with a PIN.
PROBLEM: How ever I try to set the PIN programmatically I still get the interactive password entry dialogue from WM6. Does anybody know how to correctly supress this dialogue?
This is what I do:
-----------------------------------
BluetoothSecurity.SetPin(blueRemoteAddr, password));
ServiceRecord sdp = createSDP( BluetoothService.SerialPort );
server = new BluetoothListener( BluetoothService.SerialPort, sdp);
server.Start();
BluetoothClient btclient = server.AcceptBluetoothClient();
-----------------------------------
I have experimented with PairRequest but I am not sure where it fits in. Doesn't the client need to be established first? Also, do I need to do "server.authenticate = 1" first?
Any help is greatly appreciated.
/Niklas (on WM6, C#, CF2.0, Microsoft stack)