[riot-notifications] [RIOT-OS/RIOT] pkg/nimble/netif: allow to apply and enforce random and unique connection intervals (#16372)

Hauke Petersen notifications at github.com
Wed Jun 16 09:52:38 CEST 2021


@haukepetersen commented on this pull request.



> + *
+ * Enabling this option will enforce that every BLE connection a node maintains,
+ * independent of the nodes role, uses a different connection interval, with a
+ * minimum spacing between connection intervals as defined by
+ * NIMBLE_NETIF_CONN_ITVL_SPACING_MS.
+ */
+#ifndef NIMBLE_NETIF_FORCE_CONN_ITVL_SPACING
+#define NIMBLE_NETIF_FORCE_CONN_ITVL_SPACING    1
+#endif
+
+/**
+ * @brief   Minimum spacing of connection interval when using randomized
+ *          intervals, in multiples of 1.25ms
+ */
+#ifndef NIMBLE_NETIF_CONN_ITVL_SPACING_MS
+#define NIMBLE_NETIF_CONN_ITVL_SPACING_MS       2

True, the `_MS` suffix does not really apply here. I just saw that it would further simplify things if we simply merge `NIMBLE_NETIF_CONN_ITVL_SPACING_MS` and `NIMBLE_NETIF_FORCE_CONN_ITVL_SPACING` into a single variable. Will fix.

-- 
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/16372#discussion_r652439867
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210616/8afceaba/attachment.htm>


More information about the notifications mailing list