Adding a pincode to a BLE connection

vcch75
Posts: 11
Joined: Mon Nov 04, 2019 10:04 pm

Adding a pincode to a BLE connection

Postby vcch75 » Sat Feb 22, 2020 6:47 pm

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

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: Adding a pincode to a BLE connection

Postby chegewara » Thu Feb 27, 2020 3:57 am

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.

Who is online

Users browsing this forum: Bing [Bot] and 82 guests