Function riot_sys::ble_gatts_reset

source ·
pub unsafe extern "C" fn ble_gatts_reset() -> c_int
Expand description

Resets the GATT server to its initial state. On success, this function removes all supported services, characteristics, and descriptors. This function requires that: o No peers are connected, and o No GAP operations are active (advertise, discover, or connect).

@return 0 on success; BLE_HS_EBUSY if the GATT server could not be reset due to existing connections or active GAP procedures.