[riot-notifications] [RIOT-OS/RIOT] sys/nimble_autoadv: add new module (#13425)
Hendrik van Essen
notifications at github.com
Wed Nov 4 13:45:28 CET 2020
@HendrikVE commented on this pull request.
> + * - General discoverable mode (BLE_GAP_DISC_MODE_GEN)
+ * - Undirected connectable mode (BLE_GAP_CONN_MODE_UND)
+ * - No expiration (BLE_HS_FOREVER)
+ * - No name
>From these four settings only the name is adjustable right now by setting `NIMBLE_AUTOADV_DEVICE_NAME`. The idea behind this module is to provide a builtin solution for a recurring pattern of advertising a device for an application.
(1) application starts running -> start advertising
(2) device gets connected -> stop advertising
(3) device gets disconnected -> back to (1) (restart advertising)
So between (3) and (2) advertising shouldn't stop at any time, therefore expiration is fixed to `BLE_HS_FOREVER`.
It should be discoverable (`BLE_GAP_DISC_MODE_GEN` which means `"The general discoverable mode shall be used by devices that need to be discoverable continuously or for no specific condition."`).
Non of the alternatives fits here:
- `BLE_GAP_DISC_MODE_NON` -> not discoverable
- `BLE_GAP_DISC_MODE_LTD` -> discoverable only for short time
All devices should be able to connect to it (`BLE_GAP_CONN_MODE_UND`).
Non of the alternatives fits here:
- `BLE_GAP_CONN_MODE_NON` -> not connectable
- `BLE_GAP_CONN_MODE_DIR` -> used for "fast reconnect" to specific device
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13425#discussion_r517317087
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201104/981c09f6/attachment.htm>
More information about the notifications
mailing list