Legacy Pairing #173
pschatzmann
started this conversation in
General
Replies: 1 comment
-
Hello, i don't get the following, can you please provide me some help? " BluetoothA2DPSink a2dp_sink; bool check(esp_bd_addr_t adr){ void setup() { void loop() { |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The basic documentation about authentication can be found here.
It is not possible to request an id from the user on the mobile phone using the compiled standard Arduino core. It is possible however when you use IDF or recompile the Arduino Core as described by Roberto Dario below:
From: Roberto Dario [email protected]
Subject: Re: authentication
Date: 18 February 2022 at 18:04:55 CET
To: Phil Schatzmann [email protected]
No.. or better: I can explain to you what I did in my working environment (but.. maybe there are better solutions!)
I'm using Platformio with this config:
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
the problem is that these libraries are compiled with SSP enabled (in particular "libbt.a")
So I downloaded v4.4 of IDF:
git clone -b v4.4 https://github.com/espressif/esp-idf.git
cd esp.idf
./install.sh
. ./export.sh
then I downloaded "arduino-lib-builder":
git clone https://github.com/espressif/esp32-arduino-lib-builder
cd esp32-arduino-lib-builder
I uncommented line #36 of build.sh (easily marked as #uncomment next line to access menuconfig), then I launched building process
./build.sh
(to be honest I also removed from line #24 useless targets for me leaving only: TARGETS="esp32")
When "menuconfig" started I unchecked:
Component Config->Bluetooth->Bluedroid Options->Secure Simple Pairing
then Save and Quit
when the build reached the end.. (over time... this point can change when libbuilder commits are not in sync with IDF!!!)
I got on "out\tools\sdk\esp32\lib" folder the new "libbt.a"
Then I copied the new library on local platformio repository:
C:\Users\Roberto.Dario.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\lib
Cleaned my project and recompiled and PIN started working.
I don't know if this could fit your needings..
Best Regards,
Roberto Dario
Beta Was this translation helpful? Give feedback.
All reactions