Using Bluetooth HID with ESP32

Roland.Stiebel
Posts: 2
Joined: Sun Oct 28, 2018 3:48 pm

Using Bluetooth HID with ESP32

Postby Roland.Stiebel » Sun Oct 28, 2018 8:30 pm

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!

boernsen
Posts: 9
Joined: Tue Jul 19, 2022 7:43 pm

Re: Using Bluetooth HID with ESP32

Postby boernsen » Thu Sep 22, 2022 6:53 am

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! :)

gdsports
Posts: 15
Joined: Wed Aug 02, 2017 12:17 am

Re: Using Bluetooth HID with ESP32

Postby gdsports » Fri Sep 23, 2022 6:09 am

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/

Who is online

Users browsing this forum: Baidu [Spider] and 57 guests