[riot-notifications] [RIOT-OS/RIOT] examples/nimble_gatt: extend application with ble characteristics (#10465)

Hendrik van Essen notifications at github.com
Mon Mar 4 11:45:46 CET 2019


HendrikVE commented on this pull request.



> @@ -78,10 +170,153 @@ static void start_advertise(void)
     (void)rc;
 }
 
+static int gatt_svr_chr_access_device_info_manufacturer(
+        uint16_t conn_handle, uint16_t attr_handle,
+        struct ble_gatt_access_ctxt *ctxt, void *arg)
+{
+    puts("service 'device info: manufacturer' callback triggered");
+
+    (void) conn_handle;
+    (void) attr_handle;
+    (void) arg;
+
+    char str[128];

buffer is now statically allocated and was shrinked to 100 bytes

-- 
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/10465#discussion_r262006661
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190304/b3e464bf/attachment-0001.html>


More information about the notifications mailing list