Skip to content

fix: lastValueStream is not device-specific #34

@Robbinb1993

Description

@Robbinb1993

Description

When using lastValueStream for reading battery level (0x2A19), data from multiple devices gets merged incorrectly. This happens because lastValueStream only differentiates by service UUID and characteristic UUID, but not by remoteId (device ID). This results in battery percentage updates from one device appearing in another device’s stream if they have the same characteristic UUID.

Expected Behavior

lastValueStream should be device-specific, ensuring battery percentage updates are not merged between different devices.

Additional Context

The issue only seems to happen on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions