J2ME, SPP, name

B

Boki

Hi All,
How about we do not assign the service name of SPP:


String url = "btspp://localhost:" + uuid.toString() //+";name=Serial Port";

It will cause compiler error, how about

String url = "btspp://localhost:" + uuid.toString() +";name=";

?

Thank you very much.

Best regards,
Boki.
 
B

Boki

The problem is I hope any device that can connect to this java progarm with
no problem, but some device may not choose that serviceName we defined in
java.

If I set a serviceName that not correspond to client program, this
connection will be reject, but I don`t want it be disconnected, what I want
is:

When java program turn on/ running, it can accpect any SPP connection
reqeust, even it has a wrong service name....

Does it is possible?

Thank you very much!

Best regards,
Boki.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,270
Messages
2,571,102
Members
48,773
Latest member
Kaybee

Latest Threads

Top