Skip to content

Data streaming not resuming after device reconnect #32

@munemhabib-star

Description

@munemhabib-star

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions