Frage

I've developed embedded software on a central board and a peripheral board, using Broadcom's WICED v1.0.1 API.

When my central scans, it detects the peripheral advertisement. When my central then connects, that works, and the peripheral detects this. My central can then send a write request, which the peripheral detects and responds to by sending back a notification, which the central receives ok.

BUT, when the central then disconnects, so it can poll next peripheral, nothing happens; the peripheral does not fire its link down (disconnection) callback.

To disconnect, my central executes this Broadcom API function: blecm_CreateConnectionCancel();

War es hilfreich?

Lösung

blecm_disconnect(BT_ERROR_CODE_CONNECTION_TERMINATED_BY_LOCAL_HOST);

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top