[riot-notifications] [RIOT-OS/RIOT] pkg/nimble: add IP-over-BLE support via netif/GNRC (#11578)

Semjon Kerner notifications at github.com
Mon May 27 13:59:01 CEST 2019


SemjonKerner commented on this pull request.



> +    return memcmp(argv, "help", 4) == 0;
+}
+
+void app_ble_init(void)
+{
+    /* setup the scanning environment */
+    nimble_scanlist_init();
+    nimble_scanner_init(NULL, nimble_scanlist_update);
+
+    /* register event callback with the netif wrapper */
+    nimble_netif_eventcb(_on_ble_evt);
+}
+
+int app_ble_cmd(int argc, char **argv)
+{
+    if ((argc == 1) || _ishelp(argv[1])) {

A bit crowded and hard to read. Might be a good application for getopt().

-- 
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/11578#pullrequestreview-242240611
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190527/fe016137/attachment.html>


More information about the notifications mailing list