don't set encryption level on device as it's set on each characteristic

This commit is contained in:
liamcottle
2025-02-26 20:24:14 +13:00
parent 64ccc4e289
commit abb2dea321

View File

@@ -12,7 +12,6 @@ void SerialBLEInterface::begin(const char* device_name, uint32_t pin_code) {
// Create the BLE Device
BLEDevice::init(device_name);
BLEDevice::setEncryptionLevel(ESP_BLE_SEC_ENCRYPT_MITM);
BLEDevice::setSecurityCallbacks(this);
BLEDevice::setMTU(MAX_FRAME_SIZE);