[][src]Function apache_nimble_sys::ble_gatts_svc_set_visibility

pub unsafe extern "C" fn ble_gatts_svc_set_visibility(
    handle: u16,
    visible: c_int
) -> c_int

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().

@param handle Handle of service @param visible non-zero if service should be visible

@return 0 on success; BLE_HS_ENOENT if service wasn't found.