![]() Below is the code I used to replace the ble_hidd_demo_main.c file from asterics. I'm running a Sparkfun ESP32 Thing with the "make menuconfig" set to autodetect the xtal frequency, and debug log messages sending out to COM8. ![]() I changed the appearance to BTM_BLE_APPEARANCE_HID_KEYBOARD, set the device mode to ESP_BT_MODE_BLE, set the debug logging to verbose in make menuconfig (I don't have a jtag debugger, until tomorrow) and the iocap to ESP_IO_CAP_NONE so that I don't need a PIN. ![]() I modified the above mentioned code by removing most of the mouse/keyboard events and replacing it with a task called button_reader. The idea is to use BLE only (not dual mode), and allow a user to send 3 different keystrokes to an attached computer. My own HID example is similar to asterics, but provides no mouse output. I've cobbled together a somewhat working HID Keyboard example using as a basis for my own, to perhaps avoid the problem, but to no avail. The device connects fine, but after a short while, however, my Bluetooth driver on the Windows device hangs and all the Bluetooth devices, including keyboard and mouse, stop functioning. Windows doesn't seem to like the HID Keyboard example from asterics ( ).
0 Comments
Leave a Reply. |