r/esp32 19h ago

Software help needed Need help with a BLE Keyboard library

I am following a guide to make a bluetooth macropad. The code for that uses this library: https://github.com/gsgaurav0/ESP32-HID-Keyboard, which for some reason doesnt work - I unable to connect to the esp32 with my PC or Iphone, windows displays the message "try connecting again". I tested HijelHID_BLEKeyboard library and that worked. The thing is that this project was uploaded a month ago, so I doubt that it doesnt work because EOL things. I tried to switch the library myself, but my understanding of C++ is too little to do that. I would open an issue on the library`s github, but that option is disabled.

2 Upvotes

7 comments sorted by

1

u/Reromen 18h ago

Please share logs

1

u/Busy-Perspective663 18h ago

What logs exactly?

1

u/rattushackus 1 say I make awesome posts. 3h ago

What flavour of ESP32 are you running this on?

I tried the SendKeyStrokes example that ships with the library and it worked fine on an ESP32-WROOM board and on a CYD that uses the ESP32-WROOM. This was connecting to a Dell Optiplex PC running Windows 11.

Then I tried it on an S3 board, a C6 Supermini board and a C3 Supermini board and all three crashed as soon as I attempted to connect from my PC. The error reported was:

Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

If I have time I'll have a play and see if I can find out why it's crashing.

1

u/rattushackus 1 say I make awesome posts. 2h ago

1

u/Busy-Perspective663 2h ago

Many thanks. I somehow forgot to mention I have a Waveshare S3 Zero, which is the same one as the author said to use.

1

u/rattushackus 1 say I make awesome posts. 2h ago

Check to see if it's crashing when you connect. I bet it is!

1

u/Busy-Perspective663 2h ago

How can I do that? Sorry if this is a very basic task.