ble_gattc_disc_svc_by_uuid

int
ble_gattc_disc_svc_by_uuid(
                uint16_t  conn_handle,
        const ble_uuid_t *uuid,
    ble_gatt_disc_svc_fn *cb,
                    void *cb_arg
)

Description

Initiates GATT procedure: Discover Primary Service by Service UUID.

Parameters

ParameterDescription
conn_handleThe connection over which to execute the procedure.
service_uuid128The 128-bit UUID of the service to discover.
cbThe function to call to report procedure status updates; null for no callback.
cb_argThe optional argument to pass to the callback function.

Returned values

ValueCondition
0Success.
Core return codeUnexpected error.