@ -31,6 +31,8 @@ void SerialBLEInterface::begin(const char* prefix, char* name, uint32_t pin_code
BLESecurity sec;
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0)
sec.setPassKey(true, pin_code);
sec.setCapability(ESP_IO_CAP_OUT);
sec.setInitEncryptionKey(ESP_BLE_ENC_KEY_MASK | ESP_BLE_ID_KEY_MASK);
#else
sec.setStaticPIN(pin_code);
#endif