Skip to content

Issues with Bluetooth device connection/disconnection on Windows (works correctly on Linux) #429

Open
@Felipe8297

Description

@Felipe8297

The application experiences issues with connecting to and disconnecting from Bluetooth devices on Windows. While device discovery works as expected, attempting to establish or terminate a Bluetooth connection does not result in the intended behavior. This contrasts with the functionality on Linux, where connection and disconnection operations are successful. The logs from Windows do not show any attempts to connect or disconnect, unlike the logs from Linux which clearly indicate these events.

On Windows, the application should be able to successfully connect to discovered Bluetooth devices and subsequently disconnect from them when instructed. The logs should reflect these connection and disconnection attempts and their outcomes, similar to the behavior observed on Linux (with log messages such as "Device connected event received" and "Device disconnected event received").

On Windows, the application discovers Bluetooth devices without issue. However, when attempting to connect to a device, no connection is established, and no corresponding log messages indicating a connection attempt are generated. Similarly, when attempting to disconnect, the disconnection does not occur, and no relevant log messages are produced. The application remains in a state where it has discovered devices but cannot interact with their connection status.

The issue is specific to Windows; the same code and library version (btleplug = { version = "0.11", features = ["serde"] }) function correctly on Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions