[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:53:36 CEST 2021


@haukepetersen commented on this pull request.



> + *
+ * @return  true if given interval is used
+ * @return  false if given interval is not used
+ */
+int nimble_netif_conn_itvl_used(uint16_t itvl, int skip_handle);
+
+/**
+ * @brief   Check if connection interval used by the given connection is valid
+ *
+ * @param[in] handle        connection to verify
+ *
+ * @return  true if the connection interval of the given connection collides
+ *          with the connection interval of another BLE connection
+ * @return  false if the connection interval of the given connection is valid
+ */
+int nimble_netif_conn_itvl_invalid(int handle);

because for some subjective (and probably nonesense) reason, I don't like bools in C :-)

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


More information about the notifications mailing list