diff options
author | xgroleau 🐢 <xavgroleau@gmail.com> | 2022-06-27 14:18:52 -0400 |
---|---|---|
committer | xgroleau 🐢 <xavgroleau@gmail.com> | 2022-06-27 14:18:52 -0400 |
commit | 6f19ca1f0c3a7cfdf23089f6e114b1c80250af43 (patch) | |
tree | c7a9c4762a733d7a883727de0b8528094ab92585 | |
parent | a5026485151138112b522a27c4a340614d7a7512 (diff) | |
download | nrf-softdevice-6f19ca1f0c3a7cfdf23089f6e114b1c80250af43.zip |
Fix cccd att missing
-rw-r--r-- | nrf-softdevice/src/ble/gatt_server.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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 |