Reconnecting to Disconnected devices


I am using your JavaScript library, and have 3 Meta Motion Rs. The three Meta Motion Rs are connected to my Macbook using the discoverAll() function. Once all three devices have been discovered, I connect and start streaming the accelerometer data from each device. I am then simulating a disconnect on one sensor by taking it out of range.

To handle the disconnect I'm listening for a "disconnect" event, and then calling discoverAll() again to look for the disconnected device, the other two are continuing to stream. Once the device disconnects, the discoverAll is not called. Is this because the discovery cannot take place while other devices are streaming? Are you able to help me out with the best approach for handling this?



Sign In or Register to comment.