Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: mgmt: mcumgr: smp_svr: Fix re-advertise issue on connection #83040

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nordicjm
Copy link
Collaborator

@nordicjm nordicjm commented Dec 16, 2024

Fixes an issue introduced with commit
c6ad4a7 which wrong restarts advertising after a device connects when it should only restart advertising if a device fails to connect

Fixes #83041

Fixes an issue introduced with commit
c6ad4a7 which wrong restarts
advertising after a device connects when it should only restart
advertising if a device fails to connect

Signed-off-by: Jamie McCrae <[email protected]>
@nordicjm nordicjm added backport v3.7-branch Request backport to the v3.7-branch backport v4.0-branch Backport to the v4.0-branch labels Dec 16, 2024
@zephyrbot zephyrbot requested review from kartben and nashif December 16, 2024 11:11
@alwa-nordic
Copy link
Collaborator

This PR will prevent the sample from connecting to multiple devices (when BT_MAX_CONN is increased). Is this intentional? No problem if it is.

If we want to keep the same behavior as before, we should instead ignore -ENOMEM from bt_le_adv_start() in advertise().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mcumgr area: Samples Samples backport v3.7-branch Request backport to the v3.7-branch backport v4.0-branch Backport to the v4.0-branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

samples: mgmt: mcumgr: smp_svr: Bluetooth advertising restarted on connection
5 participants