forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nrfconnect: Fixed bug with not handling CHIPoBLE disconnect (project-…
…chip#9160) Current implementation of Zephyr BLEMgr has a bug that BLEMgr handles BLE disconnect event only if CHIPoBLE advertising is enabled to determine whether this disconnect event is related to CHIPoBLE or some other service. That condition is wrong as advertising is not working when connection with commissioner is being closed. * Changed condition checking if advertising is enabled to check if CHIPoBLE GATT service is registered (that one persists during connection). * Refactored DFUoverSMP module to implement ChipEventHandler and not force handling advertisments restart in the AppTask.cpp. * Aligned lock-app and lighting-app examples to those changes. * Created new platform event kCHIPoBLEConnectionClosed to inform about closing CHIPoBLE connection and let perform some actions related to this in the application (e.g. turn on some other advertising).
- Loading branch information
1 parent
82dde52
commit ac9f62a
Showing
6 changed files
with
75 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters