문제

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();

도움이 되었습니까?

해결책

blecm_disconnect(BT_ERROR_CODE_CONNECTION_TERMINATED_BY_LOCAL_HOST);

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top