get notification crash issue
sumit1478 opened this issue · comments
Hi,
I used notification .c code to test receiving data from Nexgo-POS-BLE device.It was able to recive correct data but was crashing with following error:
Notification Handler: 30 30 30 30 30 30 30 30 30 30 30
munmap_chunk(): invalid pointer
Aborted (core dumped)
(30 30 30 30 30 30 30 30 30 30 30 was the data i sent and i was able to receive it correctly)
However when i used following indication fns instead of notification fns ,it worked flawlessly:
gattlib_register_indication(connection, notification_handler, NULL);
gattlib_indication_start(connection, &g_notify_uuid);
I do not see the
gattlib_indication_start() in the gattlib.h file. Are you certain this is part of the library? I want to use it.
gattlib_indication_start()
is in the library:
Lines 547 to 555 in 1afaa8b
gattlib/dbus/gattlib_notification.c
Lines 253 to 255 in 1afaa8b