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

what is IS_SRVC_CHANGED_CHARACT_PRESENT for?

Hi, I am just trying to understand the examples properly. This value is mostly set to 0, sometimes set to 1, and used at the call to the soft device initialization.

ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
err_code = sd_ble_enable(&ble_enable_params);

Basically I'm trying to figure out what it means, and the definitions I see throughout the SDK are all cryptic.

uint8_t service_changed:1; /**< Include the Service Changed characteristic in the local attributes. */

Any information would be very helpful. Thanks.

Parents
  • From the SDK documentaton: developer.nordicsemi.com/.../a00285.html

    It includes the service changed characteristic in the attribute table.

    From Bluetooth Specification v4.2, Vol 3 Part G, section 7.1:

    The «Service Changed» characteristic is a control-point attribute (as defined in [Vol 3] Part F, Section 3.2.6) that shall be used to indicate to connected devices that services have changed (i.e., added, removed or modified). The characteristic shall be used to indicate to clients that have a trusted relationship (i.e. bond) with the server when GATT based services have changed when they re-connect to the server. See Section 2.5.2.

Reply
  • From the SDK documentaton: developer.nordicsemi.com/.../a00285.html

    It includes the service changed characteristic in the attribute table.

    From Bluetooth Specification v4.2, Vol 3 Part G, section 7.1:

    The «Service Changed» characteristic is a control-point attribute (as defined in [Vol 3] Part F, Section 3.2.6) that shall be used to indicate to connected devices that services have changed (i.e., added, removed or modified). The characteristic shall be used to indicate to clients that have a trusted relationship (i.e. bond) with the server when GATT based services have changed when they re-connect to the server. See Section 2.5.2.

Children
No Data
Related