I'm developing a bluetooth messaging application which sends text messages between devices. My problem is when I connect more than 2 devices. After sending some data between them (let us say 3 devices) I get this exception:
javax.bluetooth.BluetoothStateException: too mach concurent requests at com.sun.kvem.jsr082.bluetooth.ServiceSearcher.start(ServiceSearcher.java:67) at com.sun.kvem.jsr082.bluetooth.DiscoveryAgentImpl.searchServices(DiscoveryAgentImpl.java:226) at javax.bluetooth.DiscoveryAgent.searchServices(DiscoveryAgent.java:259) at BSearch.deviceDiscovered(BSearch.java:78) at com.sun.kvem.jsr082.impl.bluetooth.BTDeviceDiscoverer.run(+268) requests.
I get it at device inquiry... this means when the application tries to detect other devices. This is the function that starts the inquiry:
No I cannot because that means I interrupt all users and when they join again.... the same thing, that exception. Users must stay connected. I use a refresh function for connection which works nice and I didn't got any exception but it's not detecting devices continously, it's only when I click refresh button.