ble_gatts_svc_set_visibility() function
Set visibility of local GATT service. Invisible services are not removed from database but are not discoverable by peer devices. Service Changed should be handled by application when needed by calling ble_svc_gatt_changed().
Arguments
visible
non-zero if service should be visible
Return value
0 on success; BLE_HS_ENOENT if service wasn't found.
ble_gatts_svc_set_visibility() is called by 5 functions and calls 2 functions:
![]()
ble_gatts_svc_set_visibility()
ble_gatts_svc_set_visibility() reads 5 variables:
![]()
ble_gatts_svc_set_visibility()