2020-03-18 05:27 AM
Hi guys,
I have two characteristics, one for get values from mobile application
and the second one is to reply as notification to user, to the mobile application.
I registered to notification characteristic, to reply the user for any changes.
I have two issues with Characteristic Notification.
This is code of the notification character:
aci_gatt_add_char(AdminService.AdminServiceHenale,
UUID_TYPE_128, &uuid16,
100,
CHAR_PROP_NOTIFY,
ATTR_PERMISSION_NONE,
GATT_NOTIFY_READ_REQ_AND_WAIT_FOR_APPL_RESP, /* gattEvtMask */
7, /* encryKeySize */
1, /* isVariable: 1 */
&(AdminService.ConfigStatusHandle));
and this is the sending of the notification:
result = aci_gatt_update_char_value(AdminService.AdminServiceHenale,
AttrHdle,
0, /* charValOffset */
len, /* charValueLen */
(uint8_t *) pPayload);
Thank you for your help!
2021-06-09 02:14 PM
Did you enable notifications in the CCC?