Skip to content

Headset will sometime connect twice to the webplatform #77

@GuillaumeLeroy34

Description

@GuillaumeLeroy34

Describe the bug
During scanning of IPs present on the network the web platform is connected to, the web platform will sometimes connect twice to the headset, first using port 5555, and then using the random port between 30 000 and 49 999.

To Reproduce
Note that this happens randomly during the connection phase, but to manually trigger the bug:

Steps to reproduce the behavior:

  1. Make sure that the IP of the headset you are trying to connect is in the HEADSETS_IP variable of the .env configuration file
  2. start the application
  3. Once the application seeks to connect to the headset, immediately manually connect it using the command adb connect, and use port 5555.
  4. Observe that the connection seeking process didn't stop, and the application will eventually use the random port.

Expected behavior
The port search should stop the moment the connection to the headset is successful.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
This bug does not happen on all headsets, it specifically happens on the the blue headset with identifier 101.

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