Can I post J2ME questions here?
I was just wondering can someone help me with my problem.
I'm trying to create my own Bluetooth service, the code is:-
I get the error,
"
btspp errorjava.lang.IllegalArgumentException: Malformed URL: btspp://localhost: 033BFE40DD46464eBDFC981D229E51CE;name=NightOutService; authorize=false; authenticate=false; encrypt=false
"
I think it's something to do with the UUID I'm using however i've tried various different ones, this one was created from the program
[link] [/url]
Any help is much appreciated, and sorry if i've posted in the wrong place
Paul
I was just wondering can someone help me with my problem.
I'm trying to create my own Bluetooth service, the code is:-
Code:
public class createBluetoothService extends Thread
{
public void run()
{
try
{
StreamConnectionNotifier myNotifier = (StreamConnectionNotifier)
Connector.open("btspp://localhost: 033BFE40DD46464eBDFC981D229E51CE;name=NightOutService; authorize=false; authenticate=false; encrypt=false");
StreamConnection conn = myNotifier.acceptAndOpen();
}
catch(Exception e)
{
System.out.println("btspp error" +e);
}
}
}
I get the error,
"
btspp errorjava.lang.IllegalArgumentException: Malformed URL: btspp://localhost: 033BFE40DD46464eBDFC981D229E51CE;name=NightOutService; authorize=false; authenticate=false; encrypt=false
"
I think it's something to do with the UUID I'm using however i've tried various different ones, this one was created from the program
[link] [/url]
Any help is much appreciated, and sorry if i've posted in the wrong place
Paul