embassy-rs / nrf-softdevice

Apache License 2.0
254 stars 74 forks source link

Security connection #242

Closed AliMoal closed 4 months ago

AliMoal commented 4 months ago

Hi, I need to know about with_security function. If I use it, it just fills some bytes or Softdevice execute the encryption process?? If Sofdevice does this, how? Thanks

alexmoon commented 4 months ago

with_security just sets the attribute flags on the characteristic/descriptor. Setting it to a higher value requires a connection to have established at least that level of security before it is authorized to read/write that characteristic/descriptor.