I have difficulties to determine if my peripheral BLE connection ist encrypted or not. In my device configuration this value
service_config.sec_level = GAP_SEC_LEVEL_1
is set. I'm using GAP_SEC_LEVEL_1 to ease the connection and pairing. This is done by the corresponding apps for iOS and Android. Also in the configuration
#define dg_configBLE_SECURE_CONNECTIONS (1)
is set. All I want to know is if the BLE-Communication is encrypted (LE Secure Connections) with my configuration or not.
PS.: I dicovered this in gap.h:
/// Unauthenticated pairing with encryption
Can you tell how to set this?