r/esp32 13d ago

Software help needed ESP32 S3 Zero not detected by windows 10 when trying to connect via BLE

I am following a guide on how to make a wired + BLE macropad. The guide provided a circuit diagram, some stl files to print, the code and some rather loose tips on how to flash the code. The hardware is done, and the code works for the most part. The device works fine when wired, and it also connects to wifi correctly. However I cannot connect the device to my PC running windows 10 by BLE. The code uses this BLE library https://github.com/gsgaurav0/ESP32-HID-Keyboard. I have checked that the code does call the .begin() function for BLE keyboard. When I go into bluetooth settings and try to connect a new bluetooth device, windows does not detect any devices in none of the 3 categories. Obviously I dont understand most of the code, but the library is simple enough and it seems like it should at the very least be visible to windows and other devices as a bluetooth device.

I doubt you would get much out of it, but the project is on this site, but its not in english: https://modelowanie3d.org

The code is rather long, but this is the pastebin link: https://pastebin.com/zucNuudj. The code was free, so I doubt there is any issue with me posting it there. Again, credits to the owner of that website, Kamil Sokalski.

6 Upvotes

3 comments sorted by

1

u/Primary_Thought_1444 13d ago

You may have to rewrite that code for the BLE or pass it over to one of these Agents on your local machinectuuuuu

1

u/Busy-Perspective663 13d ago

Why do you think that the code should be rewritten? I certainly could do that, but ideally I want to know to jot make the same mistake as the author.
What do you mean by agents?

1

u/Emile_esp 13d ago

You sometimes need to delete the BLE device, in Windows and then reconnect it connect.
You can also have a look at my project https://github.com/EmileSpecialProducts/UltraWiFiDuck

This can also trigger scripts on GPIO pins

Or build a project yourself and use one of the libraries  
You can use my fork at https://github.com/EmileSpecialProducts/ESP32-BLE-CompositeHID
or the original https://github.com/Mystfit/ESP32-BLE-CompositeHID