mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(nimble): Add support for static passkey
This commit is contained in:
@@ -41,6 +41,14 @@ In the `Example Configuration` menu:
|
||||
|
||||
* Select I/O capabilities of device from `Example Configuration --> I/O Capability`, default is `Just_works`.
|
||||
* Enable/Disable other security related parameters `Bonding, MITM option, secure connection(SM SC)`.
|
||||
* Optional: enable static passkey support via `Component config -> Bluetooth -> NimBLE -> Enable support for Static Passkey`.
|
||||
|
||||
Static passkey mode is useful for demos where you want to avoid interactive passkey entry.
|
||||
When enabled, the example calls `ble_sm_configure_static_passkey(456789, true)` and NimBLE
|
||||
automatically injects the passkey during pairing. Update the passkey in
|
||||
`examples/bluetooth/nimble/bleprph/main/main.c` if you want a different value.
|
||||
Both devices must use the same 6-digit passkey, and you should only use a fixed
|
||||
passkey for development or controlled environments.
|
||||
|
||||
### Build and Flash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user