[riot-notifications] [RIOT-OS/RIOT] pkg/nimble/netif: add nimble_netif_accept_direct() (#16603)

Hauke Petersen notifications at github.com
Thu Sep 9 15:06:54 CEST 2021

@haukepetersen commented on this pull request.

> +    /* start advertising directed advertising with the given BLE address */
+    res = nimble_netif_accept_direct(&addr, BLE_HS_FOREVER, &_adv_params);
+    if (res != NIMBLE_NETIF_OK) {
+        printf("err: unable to start directed advertising (%i)\n", res);
+    }
+    else {
+        puts("success: started to send directed advertisements");
+    }

yes and now. The user can always stop advertising with `ble adv stop`. But for testing it might make sense.

I will look into this together with the timeout for `nimble_netif_accept()`, as a clean integration would probably also require an additional event type...

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210909/a7fb9748/attachment.htm>

More information about the notifications mailing list