Giter VIP home page Giter VIP logo

bluetoothhid's Introduction

BluetoothHID (w/ DualShock 4 Bluetooth Example)

WARNING: This project is in early stages of development, and may not work as intended

Bluetooth his is a library to enable Bluetooth HID on the ESP32 with the aeduino-esp32 core (2.0.0-alpha1).

The example provided shows how to use it with a DualShock 4 and will change the LED with the left and right analogue sticks, as well as changing the rumble with LT+RT

If this is popular enough I will include the DualShock class within the main library as well as potentially add support for the DualShock 5

NOTE: This library has only been tested with the DualShock 4 as this is the only bluetooth HID device I have spare

Table of Contents

Getting Started

  1. Install esp32 board 2.0.0-alpha1 in Arduino (board link below as of writing)
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
  1. Navigate to SDK location:

Windows:

C:\Users\<Username>\AppData\Local\Arduino15\packages\esp32\hardware\esp32

Linux:

~/.arduino15/packages/esp32/hardware/esp32/
  1. Overwrite files with files in the sdk_files folder

NOTE: If there are any issues and you need to revert to original, uninstall then re-install the esp boards via the Arduino board manager

Basic Usage

See example code (DualShock4.ino) for how to use the library

  1. Open DualShock 4 example and upload to ESP32.
  2. Put DualShock 4 into pairing mode (Holding share + PS Buttons together while controller is off, its easier to hold the share button first)
  3. When DualShock 4 is flashing, reset the ESP32 (the ESP32 will scan for devices for 5 seconds on bootup)
  4. The DualShock 4 should now pair to the ESP32

Pairing only needs to be done once, after that the DualShock will reconnect to the ESP32 until it is paired to something else.

Considerations

The Bluetooth stack is running on core 0, and due to the fast reporting of HID devices, it would be best running all needed tasks on core 1 (which is usually the default Arduino core unless selected, so putting everything in the loop function is usually fine).

If a task is needed to be run, it can be pinned to core 1 using:

xTaskCreatePinnedToCore

Usage example:

void process_task(void *pvParameters)
{
  while (true) {
    ...
    // Do processing of anything here on core 1 to not hold up BT Stack
    ...
    vTaskDelay(10 / portTICK_PERIOD_MS);
  }

  // Should never get here!
  vTaskDelete(NULL);
}

void setup() {
...
  // BT Stack runs on Core 0, carry out all processing on core 1
  xTaskCreatePinnedToCore(&process_task, "Processing_Task", 8 * 1024, NULL, 2, NULL, 1);
}

About

Initially I could not find a DualShock 4 library for the ESP32 that allowed pairing using the built-in BT module (some need the mac address of the connected PS4, and others need an external BT module). Luckily, the latest ESP-IDF (v4.2) has a HID module that supported Bluetooth. I got this to work in ESP-IDF, but the program would freeze, or I would get stack overflows due to the fast reporting of the DualShock 4 (filling the event queue up faster than it can process the events). So I decided to dig around to see if I could do some quick modifications to get it to work, and be compatible with Arduino, which most of my projects are coded in.

The module is based off of the ESP HID Bluetooth example (for ESP-IDF)

Hopefully this library will help someone else and save the pain of trying to get fast reporting HID devices working

It would be nice if espressif can enable the BT HID components in a future release, making this library redundant.

bluetoothhid's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bluetoothhid's Issues

connected but don't work

hi
ok, my esp il connettected with the ds4 , but color led don't change if I push the L or R analog

thi is esp logs:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1412
load:0x40078000,len:13400
load:0x40080400,len:3672
entry 0x400805f8
hal-cpu.c:211] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
Started

Started
[ 1498][V][BluetoothHID.h:365] hid_device_search(): SCAN...
[ 1507][V][esp_hid_gap.c:464] ble_gap_event_handler(): BLE GAP EVENT SCAN_PARAM_SET_COMPLETE
[ 1512][V][esp_hid_gap.c:544] ble_gap_event_handler(): BLE GAP EVENT SCAN_START_COMPLETE
[ 1512][V][esp_hid_gap.c:389] bt_gap_event_handler(): BT GAP DISC_STATE START
[ 5355][V][esp_hid_gap.c:389] bt_gap_event_handler(): BT GAP DISC_STATE STOP
[ 6511][V][esp_hid_gap.c:476] ble_gap_event_handler(): BLE GAP EVENT SCAN DONE: 3
[ 6512][V][BluetoothHID.h:368] hid_device_search(): SCAN: 0 results
E (15529) BT_HIDH: Report Not Found: 1 mode: REPORT

buttons?

so

I have add this instructions in loop code

          Serial.print("LeftX ");Serial.print(LastestState.LeftX); 
          Serial.print("LeftY ");Serial.print(LastestState.LeftY);  
          Serial.print("Right X");Serial.print(LastestState.RightX);  
          Serial.print("Right Y"); Serial.println(LastestState.RightY);

// Serial.print("square ");Serial.print(LastestState.square);
// Serial.print("cross ");Serial.print(LastestState.cross);
// Serial.print("circle ");Serial.print(LastestState.circle);
// Serial.print("triangle "); Serial.println(LastestState.RightY);
// Serial.print("l1 ");Serial.print(LastestState.l1 : 1);
// Serial.print("r1 ");Serial.print(LastestState.r1);
// Serial.print("l2 ");Serial.print(LastestState.l2);

work fine for the analog parts, but if I decommenting the buttons the compiler return error beacouse do not recognize the references buttons.

any ideas?
thank you

error during compilation

hello,

it seems to be exactely what i'm looking for, thanks for your work.

I installed ESP32 on arduino, but it fail to compile exemple :(

Arduino : 1.8.15 Hourly Build 2021/05/31 10:33 (Windows 10), Carte : "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c: In function 'bta_hh_api_enable':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:92:30: warning: passing argument 1 of 'HID_HostSetSecurityLevel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

 HID_HostSetSecurityLevel("", p_data->api_enable.sec_mask);

                          ^~

In file included from C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta/bta_hh_api.h:22,

             from C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:38:

c:\users\reilh\onedrive\documents\arduino\libraries\bluetoothhid-main\src\bta_hh\stack\hidh_api.h:206:51: note: expected 'char *' but argument is of type 'const char *'

extern tHID_STATUS HID_HostSetSecurityLevel( char serv_name[], UINT8 sec_lvl );

                                          ~~~~~^~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c: In function 'bta_hh_sdp_cmpl':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:436:38: warning: passing argument 1 of 'HID_HostSetSecurityLevel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

         HID_HostSetSecurityLevel("", p_cb->sec_mask);

                                  ^~

In file included from C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta/bta_hh_api.h:22,

             from C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:38:

c:\users\reilh\onedrive\documents\arduino\libraries\bluetoothhid-main\src\bta_hh\stack\hidh_api.h:206:51: note: expected 'char *' but argument is of type 'const char *'

extern tHID_STATUS HID_HostSetSecurityLevel( char serv_name[], UINT8 sec_lvl );

                                          ~~~~~^~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c: In function 'bta_hh_get_w4_event':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1227:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_GET_RPT_EVT";

            ^~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1229:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_SET_RPT_EVT";

            ^~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1231:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_GET_PROTO_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1233:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_SET_PROTO_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1235:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_GET_IDLE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1237:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_SET_IDLE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1239:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_OPEN_EVT";

            ^~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1241:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "Unknown event";

            ^~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c: In function 'bta_hh_hid_event_name':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1250:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_OPEN";

            ^~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1252:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_CLOSE";

            ^~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1254:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_RETRYING";

            ^~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1256:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_INTR_DATA";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1258:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_INTR_DATC";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1260:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_CTRL_DATA";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1262:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_CTRL_DATC";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1264:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_HANDSHAKE";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1266:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_VC_UNPLUG";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1268:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "Unknown HID event";

            ^~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c: In function 'bta_hh_evt_code':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:479:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_DISABLE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:481:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_ENABLE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:483:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_OPEN_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:485:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_CLOSE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:487:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_OPEN_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:489:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_CLOSE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:491:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_HANDSK_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:493:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_DATA_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:495:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_CTRL_DATA";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:497:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_WRITE_DEV_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:499:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_SDP_CMPL_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:501:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_DISC_CMPL_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:503:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_MAINT_DEV_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:505:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_GET_DSCP_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:507:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_OPEN_CMPL_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:527:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "unknown HID Host event code";

            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c: In function 'bta_hh_state_code':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:544:15: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return"BTA_HH_NULL_ST";

           ^~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:546:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_IDLE_ST";

            ^~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:548:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_W4_CONN_ST";

            ^~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:550:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_CONN_ST";

            ^~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:556:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "unknown HID Host state";

            ^~~~~~~~~~~~~~~~~~~~~~~~

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_di_sdp_cback+0x1c): undefined reference to `HID_HostGetSDPRecord'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_sdp_cback+0x4): undefined reference to `HID_HostAddDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_api_enable+0x8): undefined reference to `HID_HostInit'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_api_enable+0xc): undefined reference to `HID_HostSetSecurityLevel'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_api_enable+0x10): undefined reference to `HID_HostRegister'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_disc_cmpl+0x0): undefined reference to `HID_HostDeregister'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_sdp_cmpl+0x4): undefined reference to `HID_HostOpenDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_sdp_cmpl+0x8): undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_api_disc_act+0x0): undefined reference to `HID_HostCloseDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_open_cmpl_act+0x0): undefined reference to `HID_HostWriteDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_di_sdp_cback':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:298: undefined reference to `HID_HostGetSDPRecord'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_sdp_cback':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:223: undefined reference to `HID_HostAddDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_api_enable':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:88: undefined reference to `HID_HostInit'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:92: undefined reference to `HID_HostSetSecurityLevel'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:92: undefined reference to `HID_HostRegister'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_disc_cmpl':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:177: undefined reference to `HID_HostDeregister'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_start_sdp':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:355: undefined reference to `HID_HostAddDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_sdp_cmpl':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:436: undefined reference to `HID_HostSetSecurityLevel'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:439: undefined reference to `HID_HostOpenDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:445: undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:461: undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_api_disc_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:509: undefined reference to `HID_HostCloseDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_open_cmpl_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:563: undefined reference to `HID_HostWriteDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_open_failure':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:804: undefined reference to `HID_HostCloseDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_close_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:853: undefined reference to `HID_HostCloseDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:879: undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_maint_dev_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:956: undefined reference to `HID_HostAddDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:998: undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_write_dev_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:1054: undefined reference to `HID_HostWriteDev'

collect2.exe: error: ld returned 1 exit status

exit status 1

Erreur de compilation pour la carte ESP32 Dev Module

Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.