Skip to content

Conversation

@rugeGerritsen
Copy link
Contributor

…y give bad params

The API documentation already states that the controller may require the scan interval and window used for scanning and connection establishment to be equal to obtain the best performance.

This commit prints out a warning when this is not the case. The code size is unchanged when CONFIG_BT_SCAN_AND_INITIATE_IN_PARALLEL=n.

This makes application developers aware that using the parameters BT_LE_SCAN_ACTIVE_CONTINUOUS with BT_CONN_LE_CREATE_CONN may not give the best performance.

Signed-off-by: Rubin Gerritsen [email protected]
(cherry picked from commit 56a22cb)

…y give bad params

The API documentation already states that the controller may require
the scan interval and window used for scanning and connection
establishment to be equal to obtain the best performance.

This commit prints out a warning when this is not the case. The code
size is unchanged when `CONFIG_BT_SCAN_AND_INITIATE_IN_PARALLEL=n`.

This makes application developers aware that using the parameters
`BT_LE_SCAN_ACTIVE_CONTINUOUS` with `BT_CONN_LE_CREATE_CONN` may not
give the best performance.

Signed-off-by: Rubin Gerritsen <[email protected]>
(cherry picked from commit 56a22cb)
@rlubos rlubos merged commit 5f7ad5b into nrfconnect:main Nov 28, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants