MetaWear-SDK-Android icon indicating copy to clipboard operation
MetaWear-SDK-Android copied to clipboard

Data streaming not resuming after device reconnect

Open munemhabib-star opened this issue 8 months ago • 0 comments

After reconnecting to a MetaWear device, the accelerometer/SensorFusion service does not resume streaming data. The connection is successful, but no sensor updates are received in the app.

Steps to Reproduce

Connect to a MetaWear device.

Start SensorFusion (e.g., correctedAcceleration().start() + sensorFusion.start()).

Confirm data is streaming.

Close or disconnect the app/device.

Reconnect to the same device.

Attempt to start SensorFusion again.

Expected Behavior

After reconnecting, SensorFusion should resume streaming motion/acceleration data as it does on the first connection.

Actual Behavior

Device reconnects successfully, but no data is streamed. The correctedAcceleration and other producers never emit values after reconnect.

Environment

SDK version: 3.4.0

React Native version: 0.78

Device: (e.g., Android 13, Pixel 6)

Notes

It seems like the SensorFusion service or data routes remain stuck after the first disconnect. Manual cleanup (removing routes / stopping modules) is not clearly documented in the SDK.

munemhabib-star avatar Aug 28 '25 04:08 munemhabib-star