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.

