Page 1 of 1

Using Bluetooth HID with ESP32

Posted: Sun Oct 28, 2018 8:30 pm
by Roland.Stiebel
I just tried to do use a Bluetooth Joystick with my ESP32, but I get an error bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x003e
updating to the newest arduino made the error to disappear, but the return code of the connect-function is false,
so even if I do not get an error message anymore it still does not work.

Can you tell me, what I have to do?
Hardware: Wroom32 and HZ-2749 joystick.

The HZ-2749 works great with my android phone.

I use the standard BLE-client example and change the UUID to the (correct) 0x1812.

Has anyone managed to use a Bluetooth HID with the ESP32 at all?

Thanks a lot!

Re: Using Bluetooth HID with ESP32

Posted: Thu Sep 22, 2022 6:53 am
by boernsen
Hi Roland,

I know it is a long time ago, but did you manage to pair your joystick with the ESP32? If yes, I (and probably many) would be very interested to know! :)

Re: Using Bluetooth HID with ESP32

Posted: Fri Sep 23, 2022 6:09 am
by gdsports
I was able to get a BLE mouse working using this code. Thre is an example for a BLE joystick/gamepad.

https://github.com/esp32beans/BLE_HID_Client

And there is another example.

https://www.instructables.com/ESP32-Blu ... e-Control/