Skip to content

JS execution appears to hang while BLE characteristics are subscribed #2689

@bobrippling

Description

@bobrippling

Description

If I have my phone subscribed to a BLE characteristic (such as HRM notifications), when I hold the reset button on my BangleJS2, the "loading dialog" appears but the watch then hangs until I terminate the BLE connection

Repro steps

  • Install widhrmadv
  • Tap the widget to enable HRM adverts
  • Connect a phone and have the phone subscribe to the HRM BLE notifications (e.g. set the watch as a sensor in Strava)
  • Once the phone is confirmed to be recieving HRM notifications, reset the watch via the hardware button
  • Observe that the watch hangs until the phone disconnects BLE

I've looked through the code but can't find any potential wait-loop in the reset code, perhaps I'm looking in the wrong places though

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