Im working on a nxt swarm project. One of our targets is make a bluetooth ring connection between agents.
I developed a bluetooth class called Bluering which open connections and control data transfer. I tested in a few task and it worked but sometimes nxt closes bluetooth channel and break the ring.
I posted the code here : http://pastebin.com/YQ5UW4Yi
The last time i test the code it had problems when call inStream.available() method, but i dont know why im having these problems now. (I use this class to make robots forage before)
Anybody knows why lejos closes bt channel when you try to make a scatternet?