ESP32-BLE-Keyboard icon indicating copy to clipboard operation
ESP32-BLE-Keyboard copied to clipboard

esp32s3 authentication errors

Open bm16ton opened this issue 2 years ago • 7 comments

Hello, Im new to this but the lib/sketch was unable to authenticate correctly on esp32s3, im foolish but i think it requires dual mode and S3 is strictly BLE no BR, but the mouse lib worked so i copied the auth part overe and all is good. So in short changed

BLESecurity* pSecurity = new BLESecurity(); pSecurity->setAuthenticationMode(ESP_LE_AUTH_REQ_SC_MITM_BOND);

to

BLESecurity *pSecurity = new BLESecurity(); pSecurity->setAuthenticationMode(ESP_LE_AUTH_BOND);

taken from the working mouse lib

bm16ton avatar Mar 27 '22 19:03 bm16ton

May I suggest a Pull request?

Maybe using something like:

if CONFIG_IDF_TARGET_ESP32S3 ?

DustinWatts avatar May 11 '22 08:05 DustinWatts

oohh never realy done one of those! Ha its the little things in life isnt it!? hopefully will get to it within next couple days! thank you for the suggestion.

On Wed, 11 May 2022, 4:53 am Dustin Watts, @.***> wrote:

May I suggest a Pull request?

Maybe using something like:

if CONFIG_IDF_TARGET_ESP32S3 ?

— Reply to this email directly, view it on GitHub https://github.com/T-vK/ESP32-BLE-Keyboard/issues/152#issuecomment-1123385549, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAWMPYD6LUJRKFOEF4EQCDVJNYRDANCNFSM5RZGFPMA . You are receiving this because you authored the thread.Message ID: @.***>

bm16ton avatar May 12 '22 01:05 bm16ton

esp32-c3 needs the same fix

Hannah-GBS avatar Jul 15 '22 07:07 Hannah-GBS

So this is what I was looking for a week now? :) I had created a new issue https://github.com/T-vK/ESP32-BLE-Keyboard/issues/228 , probably this would fix it. I ll give It a go.

dejavu1987 avatar Apr 05 '23 10:04 dejavu1987

crap, never use this so totaly forgot, i realy should do a pr. Glad it wirked for you tho

On Wed, 5 Apr 2023, 6:10 am Anil Maharjan, @.***> wrote:

So this is what I was looking for a week now? :)

— Reply to this email directly, view it on GitHub https://github.com/T-vK/ESP32-BLE-Keyboard/issues/152#issuecomment-1497242983, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAWMP43UXJ5VHCQSWYCVA3W7VALFANCNFSM5RZGFPMA . You are receiving this because you authored the thread.Message ID: @.***>

bm16ton avatar Apr 05 '23 15:04 bm16ton

Actually I switched to NimBLE and it is apparently doing the same.

dejavu1987 avatar Apr 24 '23 16:04 dejavu1987

? I guess i dont understand. If you try and use the function/protocol that needs both "legacy" and ble bluetooth versions to function on the S3 which only supports ble, it wont work on any lib etc. Is this what happened? Or something else? Rereading this it sounds like im being pissy but im not, read it while picturing me smiling trying to be helpful. im bad at written word for communicating.

On Mon, 24 Apr 2023, 12:08 pm Anil Maharjan, @.***> wrote:

Actually I switched to NimBLE and it is apparently doing the same.

— Reply to this email directly, view it on GitHub https://github.com/T-vK/ESP32-BLE-Keyboard/issues/152#issuecomment-1520456748, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAWMP3CXJQXGQX2WIOTVRLXC2QRLANCNFSM5RZGFPMA . You are receiving this because you authored the thread.Message ID: @.***>

bm16ton avatar Apr 24 '23 16:04 bm16ton