Skip to content

Commit

Permalink
[zephyr] Drop BLE connection on endpoint close (#14600)
Browse files Browse the repository at this point in the history
When a BLE endpoint is closed on the peripheral side, the
associated connection is not automatically closed. Instead,
BlePlatformDelegate::NotifyChipConnectionClosed() is called,
but the function is empty for Zephyr and many other
platforms.

Implement connection closing for Zephyr platform.

Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
  • Loading branch information
Damian-Nordic authored Feb 1, 2022
1 parent f09c5fc commit da22674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Zephyr/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ bool BLEManagerImpl::SendReadResponse(BLE_CONNECTION_OBJECT conId, BLE_READ_REQU

void BLEManagerImpl::NotifyChipConnectionClosed(BLE_CONNECTION_OBJECT conId)
{
// Intentionally empty.
CloseConnection(conId);
}

bool BLEManagerImpl::IsSubscribed(bt_conn * conn)
Expand Down

0 comments on commit da22674

Please sign in to comment.