ESP32-BLE-Keyboard
ESP32-BLE-Keyboard copied to clipboard
esp32s3 authentication errors
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
May I suggest a Pull request?
Maybe using something like:
if CONFIG_IDF_TARGET_ESP32S3
?
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: @.***>
esp32-c3 needs the same fix
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.
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: @.***>
Actually I switched to NimBLE and it is apparently doing the same.
? 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: @.***>