ESP32-BLE-Keyboard icon indicating copy to clipboard operation
ESP32-BLE-Keyboard copied to clipboard

`sdkconfig.h: No such file or directory` on a fresh install for Arduino Nano

Open beyarkay opened this issue 2 years ago • 3 comments

Hi there, I'm getting the error:

Detecting libraries used...
[omitted long line]
Alternatives for BleKeyboard.h: [[email protected]]
ResolveLibrary(BleKeyboard.h)
  -> candidates: [[email protected]]
[omitted long line]
Alternatives for sdkconfig.h: []
ResolveLibrary(sdkconfig.h)
  -> candidates: []
In file included from /<homedir>/Documents/Arduino/libraries/ESP32-BLE-Keyboard/examples/SendKeyStrokes/SendKeyStrokes.ino:4:0:
/<homedir>/Documents/Arduino/libraries/ESP32-BLE-Keyboard/BleKeyboard.h:3:10: fatal error: sdkconfig.h: No such file or directory
 #include "sdkconfig.h"
          ^~~~~~~~~~~~~
compilation terminated.
Using library ESP32-BLE-Keyboard at version 0.3.0 in folder: /<homedir>/Documents/Arduino/libraries/ESP32-BLE-Keyboard 
exit status 1
Error compiling for board Arduino Nano 33 BLE.

I'm hoping to get this working for the Arduino Nano 33 BLE. Is this possible?

beyarkay avatar May 07 '22 16:05 beyarkay

Hello @beyarkay

This library is written for the ESP32 chipset and cannot be used with the Arduino Nano (ATmega328).

sivar2311 avatar May 07 '22 21:05 sivar2311

Thanks for the fast reply!

Is there no way I can modify it to work with the Nano? I'm happy to put in the work and contribute but my use case requires out be compatible with the Nano

beyarkay avatar May 09 '22 11:05 beyarkay

No, this is not possible, because this library depends on the functions of the ESP32 chip. You either need a library for the Arduino Nano BLE like mbed-ble-hid or you could alternatively use an ESP32 devkit or similar.

sivar2311 avatar May 09 '22 12:05 sivar2311