Click here to Skip to main content
15,887,214 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wordle 391 Pin
FreedMalloc15-Jul-22 5:50
FreedMalloc15-Jul-22 5:50 
GeneralRe: Wordle 391 Pin
jmaida15-Jul-22 9:57
jmaida15-Jul-22 9:57 
GeneralChallenges of Bluetooth PinPopular
raddevus14-Jul-22 4:43
mvaraddevus14-Jul-22 4:43 
JokeRe: Challenges of Bluetooth - Wrong type Pin
Afzaal Ahmad Zeeshan14-Jul-22 5:32
professionalAfzaal Ahmad Zeeshan14-Jul-22 5:32 
GeneralRe: Challenges of Bluetooth - Wrong type Pin
raddevus14-Jul-22 5:36
mvaraddevus14-Jul-22 5:36 
GeneralRe: Challenges of Bluetooth Pin
honey the codewitch14-Jul-22 6:02
mvahoney the codewitch14-Jul-22 6:02 
GeneralRe: Challenges of Bluetooth Pin
raddevus14-Jul-22 6:20
mvaraddevus14-Jul-22 6:20 
GeneralRe: Challenges of Bluetooth Pin
honey the codewitch14-Jul-22 6:46
mvahoney the codewitch14-Jul-22 6:46 
I've never actually used the secure/encrypted pairing feature myself, as I've never needed the security feature.

I just know there's a callback for handling it in the NimBLE stack.

The code you are asking for is more appropriate for an article than it is for a comments section. One of the reasons I haven't written any bluetooth articles is frankly, bluetooth doesn't actually work, and I like it when my code works.

Maybe bluetooth 6 will finally work? Until then I use it only at gunpoint and when I do I wave a dead chicken over it and pray to gods I normally don't dare name.

Anyway, I found this.
Pairing or bonding from ESP32 Central using NimBLE stack - ESP32 Forum[^]
This doesn't cover everything, but their problem hints that I could be wrong. The problem hints that the stack itself is storing credentials, which in your case is not what you want. It might be possible to change that by digging into the HAL, as the entire thing is open source, but YMMV.


Never mind, I misunderstood your initial post. Forgive me, I'm a bit slow right now. Yes, the ESP32 should do what you want. I just don't use that feature but involves creating a callback and handling the key validation at which point i believe encryption is enabled.

I'm not a bluetooth expert though. Frankly, I think whoever designed it should be forced to use it.
To err is human. Fortune favors the monsters.

GeneralRe: Challenges of Bluetooth Pin
raddevus14-Jul-22 7:16
mvaraddevus14-Jul-22 7:16 
JokeRe: Challenges of Bluetooth Pin
trønderen14-Jul-22 11:18
trønderen14-Jul-22 11:18 
GeneralRe: Challenges of Bluetooth Pin
JohnDG5215-Jul-22 2:01
JohnDG5215-Jul-22 2:01 
GeneralRe: Challenges of Bluetooth Pin
englebart20-Jul-22 16:01
professionalenglebart20-Jul-22 16:01 
GeneralRe: Challenges of Bluetooth Pin
raddevus21-Jul-22 4:10
mvaraddevus21-Jul-22 4:10 
JokeRe: Challenges of Bluetooth Pin
englebart21-Jul-22 15:10
professionalenglebart21-Jul-22 15:10 
RantWe're not all in the US: Annual rant about dates PinPopular
Chris Maunder14-Jul-22 3:50
cofounderChris Maunder14-Jul-22 3:50 
GeneralRe: We're not all in the US: Annual rant about dates Pin
CPallini14-Jul-22 3:58
mveCPallini14-Jul-22 3:58 
GeneralRe: We're not all in the US: Annual rant about dates Pin
Ralf Quint15-Jul-22 13:07
Ralf Quint15-Jul-22 13:07 
GeneralRe: We're not all in the US: Annual rant about dates Pin
OriginalGriff14-Jul-22 3:59
mveOriginalGriff14-Jul-22 3:59 
GeneralRe: We're not all in the US: Annual rant about dates Pin
Greg Utas14-Jul-22 4:00
professionalGreg Utas14-Jul-22 4:00 
GeneralRe: We're not all in the US: Annual rant about dates Pin
Craig Robbins14-Jul-22 4:04
Craig Robbins14-Jul-22 4:04 
RantRe: We're not all in the US: Annual rant about dates Pin
Daniel Pfeffer14-Jul-22 6:45
professionalDaniel Pfeffer14-Jul-22 6:45 
GeneralRe: We're not all in the US: Annual rant about dates PinPopular
Greg Utas14-Jul-22 7:00
professionalGreg Utas14-Jul-22 7:00 
GeneralRe: We're not all in the US: Annual rant about dates Pin
Daniel Pfeffer14-Jul-22 7:08
professionalDaniel Pfeffer14-Jul-22 7:08 
GeneralRe: We're not all in the US: Annual rant about dates Pin
Leo5614-Jul-22 20:52
Leo5614-Jul-22 20:52 
GeneralRe: We're not all in the US: Annual rant about dates Pin
Greg Utas15-Jul-22 0:50
professionalGreg Utas15-Jul-22 0:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.