Page 1 of 1

Adding a pincode to a BLE connection

Posted: Sat Feb 22, 2020 6:47 pm
by vcch75
Hi !

I developed a device that sends a long password through BLE. It is based on BLEKeyboard library for arduino.

#include <BleKeyboard.h>
// Creating object
BleKeyboard bleKeyboard(DEVICE_NAME,"PassStrong",99);

//
if (bleKeyboard.isConnected()) {
....}

To add a real security, I would like to add a pincode to the bluetooth connection. Any idea how I should modify the library to have this working in Arduino ?

Thanks a lot

vcch

Re: Adding a pincode to a BLE connection

Posted: Thu Feb 27, 2020 3:57 am
by chegewara
You can check arduino-esp32 issue tracker about pin code in bluetooth.
It is implemented in Kolbans library, which is now integrated to arduino-esp32.