-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat!: add ble state 'initiating' #723
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
🦙 MegaLinter status:
|
Descriptor | Linter | Files | Fixed | Errors | Elapsed time |
---|---|---|---|---|---|
✅ ACTION | actionlint | 12 | 0 | 0.03s | |
✅ CPP | clang-format | 994 | 3 | 0 | 6.94s |
✅ DOCKERFILE | hadolint | 2 | 0 | 0.09s | |
✅ JSON | jsonlint | 9 | 0 | 0.12s | |
✅ JSON | prettier | 9 | 0 | 0 | 0.7s |
markdownlint | 6 | 0 | 4 | 1.61s | |
markdown-link-check | 6 | 1 | 78.16s | ||
✅ MARKDOWN | markdown-table-formatter | 6 | 0 | 0 | 0.37s |
✅ REPOSITORY | checkov | yes | no | 19.69s | |
✅ REPOSITORY | git_diff | yes | no | 0.05s | |
✅ REPOSITORY | grype | yes | no | 16.71s | |
✅ REPOSITORY | ls-lint | yes | no | 0.07s | |
✅ REPOSITORY | secretlint | yes | no | 7.36s | |
✅ REPOSITORY | trivy | yes | no | 21.66s | |
✅ REPOSITORY | trivy-sbom | yes | no | 0.09s | |
✅ REPOSITORY | trufflehog | yes | no | 2.09s | |
lychee | 140 | 2 | 2.74s | ||
prettier | 23 | 1 | 1 | 1.1s | |
✅ YAML | v8r | 23 | 0 | 11.21s | |
✅ YAML | yamllint | 23 | 0 | 0.35s |
See detailed report in MegaLinter reports
3f70585
to
4507109
Compare
@oguzcanoguz I updated the picture on philips-software/amp-hal-st#420 to reflect the problem correctly as we just discussed. |
|
…s-software/amp-embedded-infra-lib into feature/add-new-ble-state
@gabrielsantosphilips Thanks. Just for this reason, I recommend also not having a fixed time-out inside our GapCentral implementation; we cannot possibly know when to expect the next advertising packet. I'd also add a comment for the Connect method to briefly expain that calling connect will first trigger a state update with Initiating and then either another update to Connected or to Standby if there is time-out. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…s-software/amp-embedded-infra-lib into feature/add-new-ble-state
Quality Gate passedIssues Measures |
This PR adds the missing GAP state "initiate" as mentioned in the BLUETOOTH CORE SPECIFICATION Version 5.3 (Vol 6, Part B, 1.1 LINK LAYER STATES). This state specifically impacts BLE Central and is unrelated to other roles.
The "initiate" state allows for detection of connection failures when no events are returned from the stack, which can block further stack operations.
Two potential scenarios for this state are:
Attempting to connect to a device that does not exist (e.g., due to a wrong MAC address).
The peripheral crashing or entering an undefined state between scanning and connecting, regardless of the cause.
The BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 6, Part B, 4.5 CONNECTION STATE explains in detail how a connection works: