Skip to content

Nano IOT 33 - BLE.end() & Wifi.end() hangs in .poll() after repeated switching attempts #296

Open
@JEG8

Description

@JEG8

I am switching between BLE and Wifi on the ATSAMD21G (Nano IOT33). Before switching, I am calling BLE.end() if I am switching to WiFi and WiFi.end() if I am switching to BLE. The switching works 4 times but always fails on the 5th time.

The BLE connection state still shows "connected" but there are no BLE characteristics being published to the peripheral. It seems like the BLE.connected() state wasn't properly destroyed, or something was left hanging around. The debugger shows that I am still in HCI.poll() but the connection just rapidly switches from connected to disconnected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions