Reset of disconnected MetaMotionR

I am working with 4 MeatMotionR sensors and I am recording the acceleration on a moving object at 4 different positions in a loop with 5min recording intervals.
My application (JavaScript/NodeJS) works fine as long as no device disconnects during recording (which now and then happens).
I have an Event listener though that catches the disconnection error but afterwards I am not able to connect to the device, since its stil in streaming mode? I can only find the device but not connect to it.

With the iOS MetaBase App it is always possible to connect and reset the device independently of its state. I need to do that steps out of my application. How is it implemented in your MetaBase App? Could you please provide me some code examples for JavaScript?

This discussion has been closed.