ble_gatts_svc_set_visibility

int
ble_gatts_svc_set_visibility(uint16_t handle, int visible)

Description

Changes visibility of a service with specified handle. This function allow any service to be hidden (and then restored) from clients.

Note: From GATT point of view, the service is still registered and has the same handle range assigned and it is ATT server which hides the attributes from the client.

Parameters

ParameterDescription
handleThe handle of a service for which the visibility should be changed.
visibleThe value of visibility to set.

Returned values

ValueCondition
0Success.
BLE_HS_ENOENTThe svcs with specified handle does not exist.