Hi,
I would like to establish services with following security permissions in a Bluetooth 5 peripheral:
Currently I use the NRF52-DK and SDK 15.2
Service A: Security level 2 - Unauthenticated pairing with encryption
This service shall be accessible (characteristics readable) after pairing with JustWorks Legacy or Secure pairing
-> e.g. for old Smartphones
Service B: Security level 2 - Unauthenticated pairing with encryption
This service shall be accessible (characteristics readable) only if JustWorks Secure pairing with P-256 Cryptography was used.
->e.g. newer Smartphones without NFC; Secure Pairing shall be used to provide at least some security against eavesdropping.
I don't know how to configure Service B in order to reject requests from JustWorks legacy connections.
To may understanding I cannot use security level 4 with Service B, as this would require authentication and the peripheral does not have the I/O capabilities for that.
I cannot use Secure Connection Only, as non of the services has security level 4.
Does anyone know how to achieve the described behavior?
Thanks in advance.