taks / esp32-nimble

A wrapper for the ESP32 NimBLE Bluetooth stack.
Apache License 2.0
118 stars 35 forks source link

Passkey Size #88

Closed sampaioletti closed 8 months ago

sampaioletti commented 9 months ago

Would it be worth adding documentation that the minimum passkey length is 6 digits for BLE

See here for reference https://esp32.com/viewtopic.php?t=13124

So if you set a passkey to say '1234' the passkey will actually be '001234' I'm not sure if that's guaranteed or where that transform occurs, but that is how it currently works. I was struggling with it for a bit, may not be alone. (:

taks commented 9 months ago

Yes, please.

ChocolateLoverRaj commented 8 months ago

I'm not sure if that's guaranteed or where that transform occurs

FYI, I'm pretty sure the transform occurs when the number gets converted to u32 and then the u32 gets converted into bytes.

I also got confused when I found out that 1234 turns into "001234". You're not the only one.