From 6f19ca1f0c3a7cfdf23089f6e114b1c80250af43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?xgroleau=20=F0=9F=90=A2?= Date: Mon, 27 Jun 2022 14:18:52 -0400 Subject: Fix cccd att missing --- nrf-softdevice/src/ble/gatt_server.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nrf-softdevice/src/ble/gatt_server.rs b/nrf-softdevice/src/ble/gatt_server.rs index 398f88d..99d22dd 100644 --- a/nrf-softdevice/src/ble/gatt_server.rs +++ b/nrf-softdevice/src/ble/gatt_server.rs @@ -182,6 +182,12 @@ where server.on_write(params.handle, &v).map(|e| f(e)); } + raw::BLE_GATTS_EVTS_BLE_GATTS_EVT_SYS_ATTR_MISSING => { + info!("initializing gatt sys att"); + let ret = + raw::sd_ble_gatts_sys_attr_set(conn_handle, ::core::ptr::null(), 0, 0); + RawError::convert(ret).err(); + } _ => {} } None -- cgit v1.2.3