Search found 2 matches
- Thu Nov 14, 2024 4:55 am
- Forum: ESP32 Arduino
- Topic: ESP32-C6-WROOM1 : impossible to bond
- Replies: 1
- Views: 326
Re: ESP32-C6-WROOM1 : impossible to bond BLE
Hello, I solved my problem. It looks like adding these lines of code solved the issue : pSecurity->setInitEncryptionKey(ESP_BLE_ENC_KEY_MASK | ESP_BLE_ID_KEY_MASK); pAdvertising->setScanResponse(true); pAdvertising->setMinPreferred(0x06); // helps with iPhone discovery pAdvertising->setMinPreferred(...
- Wed Nov 13, 2024 5:29 am
- Forum: ESP32 Arduino
- Topic: ESP32-C6-WROOM1 : impossible to bond
- Replies: 1
- Views: 326
ESP32-C6-WROOM1 : impossible to bond
Hello, I am trying to bond my ESP32-C6-WROOM1 to my smartphone. I am using ESP_LE_AUTH_REQ_SC_BOND and ESP_IO_CAP_NONE, with a 16 bits key size. Here is my code : #include <BLEDevice.h> #include <BLEServer.h> #include <BLEUtils.h> #include <BLESecurity.h> BLESecurity *pSecurity = new BLESecurity(); ...