This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52_SDK_0.9.2_dbc28c9 alert notification example

Hi.

I'm little baffled by the example. Out of box it doens't add the alert notification service to gatt service list in advertising init. Nor I cannot see it with nordic smartphone app (nRF Master Control Panel), so it's not added elsewhere either.

I added to advertisement_init:

ble_uuid_t adv_uuids[] =
{
    {BLE_UUID_ALERT_NOTIFICATION_SERVICE,       BLE_UUID_TYPE_BLE}
};

advdata.uuids_complete.uuid_cnt = sizeof(adv_uuids) / sizeof(adv_uuids[0]);
advdata.uuids_complete.p_uuids  = adv_uuids;

and also moved in the alert_notification_init the ble_ans_c_service_delete before ble_ans_c_init like suggested in the ble_ans_c.h.

After this I still cannot see the alert service in the service list with the nordic app.

What else is missing? The whole advertisement handling is quite different to fe proximity example (that's working properly).

Parents
  • Ok, thanks for the ansver.

    So if the nrf board would ask for the service discovery, the android phone would report that it supports alert notifications (or in case of a iOS ANCS support).

    Also shouldn't the android support the alert notifications out-of-box without any extra apps if the device is paired & trusted device.

  • FormerMember
    0 FormerMember in reply to Matts

    I'm not sure, but I don't think the alert notification profile is "built into" android.

Reply Children
No Data
Related