fixed channel number on server side?

Hello friends,

Can we assign a fixed channel number to use in the rfcomm in bluetooth? So that the client can connect to it directly each time.

My current code looks like:

--

UUID RFCOMM_UUID = new UUID(0x0003)

String s = "btspp://localhost:" + RFCOMM_UUID + ";name=" + serviceName.trim().toLowerCase();

server = (StreamConnectionNotifier) Connector.open(s);

--

To be more specific, the exact issue I want to solve is: each time, the client has to discover device, discover service, then connect to the server side. This is just too time consuming. So if I can fixed server's channel number, and since the service's address is known (will not change), then I can by pass the server discover and service discover process. Any comments?

Thanks a lot.

[812 byte] By [HappyKevina] at [2007-10-3 4:18:50]
# 1
So we can not give a channel number / port number to it?
HappyKevina at 2007-7-14 22:20:34 > top of Java-index,Java Mobility Forums,Java ME Technologies...