This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Nordic_HRM generic attribute service change 0x2a05 0x2902 add

I would like to know how to add Service Change UUID: 0x2A05 Properties: INDICATE Descriptors Client Characteristic Config UUID: 0x2902 to Generic Attribute of Nordic_HRM. please tell me.

Parents
  • Hi,

    To enable the service changed characteristic you need to set the service_changed flag. You can set the flag in the ble_stack_init() function like this:

    ble_enable_params_t ble_enable_params;
    err_code = softdevice_enable_get_default_config(NRF_BLE_CENTRAL_LINK_COUNT,
                                                    NRF_BLE_PERIPHERAL_LINK_COUNT,
                                                    &ble_enable_params);
    ble_enable_params.gatts_enable_params.service_changed = 1; \\IS_SRVC_CHANGED_CHARACT_PRESENT
    APP_ERROR_CHECK(err_code);
    
Reply
  • Hi,

    To enable the service changed characteristic you need to set the service_changed flag. You can set the flag in the ble_stack_init() function like this:

    ble_enable_params_t ble_enable_params;
    err_code = softdevice_enable_get_default_config(NRF_BLE_CENTRAL_LINK_COUNT,
                                                    NRF_BLE_PERIPHERAL_LINK_COUNT,
                                                    &ble_enable_params);
    ble_enable_params.gatts_enable_params.service_changed = 1; \\IS_SRVC_CHANGED_CHARACT_PRESENT
    APP_ERROR_CHECK(err_code);
    
Children
Related