mirror of
https://github.com/apache/nuttx.git
synced 2026-09-09 02:16:35 +00:00
A connection stops the legacy advertising set and the vendor stack leaves it stopped, so after the first central connected (or aborted the attempt) the device was never discoverable again until a reset. Register a connection callback and restart the advertising set with ble_adv_restart() on every disconnection event. This covers both the clean disconnect and the aborted-connection case: an incomplete connection holds the (single) link until the supervision timeout, and its disconnection event then restarts the advertising the same way. Validated on hardware (GD32VW553K-START): repeated scan/connect/write/disconnect cycles from a Linux central all find the device advertising again after the previous cycle, where it previously required a reset after the first connection. Assisted-by: Claude Opus 4.8 Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com> |
||
|---|---|---|
| .. | ||
| _extensions | ||
| _static | ||
| _templates | ||
| applications | ||
| components | ||
| contributing | ||
| debugging | ||
| faq | ||
| guides | ||
| implementation | ||
| introduction | ||
| logos | ||
| platforms | ||
| quickstart | ||
| reference | ||
| ReleaseNotes | ||
| standards | ||
| testing | ||
| .gitignore | ||
| conf.py | ||
| glossary.rst | ||
| index.rst | ||
| known-warnings.txt | ||
| legacy_README.md | ||
| make.bat | ||
| Makefile | ||
| Pipfile | ||
| Pipfile.lock | ||
| security.rst | ||
| substitutions.rst | ||