Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Connection!!

0 replies · 1,182 views · Started 28 September 2005

hi,
I load the midlet my phone nokia. The midlet connect althout the Bluetooth with PC. The code slide client (nokia) I have the server address bluetooth but I try the connect with the PC I have the error.

"Connection error (IOException) SymbianOS error= -34 General system error"
I below the little code, maybe this way is easer that helpe me.

public void run(){

String connString = getConnectionString();
this.append("Connect to server\n"😉;

if (connectToServer (connString)){
this.append("OK"😉;
}
}

private String getConnectionString(){
//I put address BT and channel the service
StringBuffer temp = new StringBuffer("btspp://000A3A570270:1"😉;

return temp.toString();
}
private boolean connectToServer (String connString){
this.append(connString+"\n"😉;
try{
conn = (StreamConnection) Connector.open(connString);

input = conn.openInputStream();
output = conn.openOutputStream();
return true;
}catch (IOException ioe){
this.append("Conexi�n falla (IOException: "😉;
this.append (ioe.getMessage());
this.append("😉\n"😉;

return false;
}
}
Someone could help me, please?
Thanks 😊