You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/BluetoothSerial/README.md
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,11 @@ Using 3rd party Serial BT module will require to study the documentation of the
34
34
35
35
### Pairing options
36
36
37
-
There are two major options - with and without Secure Simple Pairing (SSP).
37
+
There are two easy options and one difficult.
38
+
39
+
The easy options can be used as usual. These offer pairing with and without Secure Simple Pairing (SSP).
40
+
41
+
The difficult option offers legacy pairing (using fixed PIN) however this must be compiled with Arduino as an IDF component with disabled sdkconfig option `CONFIG_BT_SSP_ENABLED`.
38
42
39
43
#### Without SSP
40
44
@@ -63,5 +67,12 @@ Both options must be called before `begin()` or if it is called after `begin()`
63
67
***inputCapability=false and outputCapability=true**
64
68
* Only the other device authenticates pairing without any pin.
65
69
***inputCapability=true and outputCapability=false**
66
-
* User will be required to input the passkey to the ESP32 device to authenticate.
67
-
* This must be implemented by registering callback via `onKeyRequest()` and in this callback the entered passkey will be responded via `respondPasskey(passkey)`
70
+
* The user will be required to input the passkey to the ESP32 device to authenticate.
71
+
* This must be implemented by registering a callback via `onKeyRequest`()` and in this callback the entered passkey will be responded via `respondPasskey(passkey)`
72
+
73
+
### Legacy Pairing (IDF component)
74
+
75
+
To use Legacy pairing you will have to use [Arduino as an IDF component](https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/esp-idf_component.html) and disable option `CONFIG_BT_SSP_ENABLED`.
76
+
Please refer to the documentation on how to setup Arduino as an IDF component and when you are done, run `idf.py menuconfig` navigate to `Component Config -> Bluetooth -> Bluedroid -> [ ] Secure Simple Pairing` and disable it.
77
+
While in the menuconfig you will also need to change partition scheme `Partition Table -> Partition Table -> (X) Single Factory app (large), no OTA`.
78
+
After these changes save & quit menuconfig a you are ready to go: `idf.py monitor flash`.
0 commit comments