Search found 4 matches

by StuartLittle57
Mon Jul 18, 2022 10:11 am
Forum: ESP-IDF
Topic: Connect ESP32 to bluetooth classic keyboard
Replies: 4
Views: 7857

Re: Connect ESP32 to bluetooth classic keyboard

Hi Lars, Here are related issues: https://github.com/espressif/esp-idf/issues/8027 https://github.com/espressif/esp-idf/issues/8028 I simply modified the BT_HID_HOST example. It only worked for me with an older version of IDF, but that was 8 months ago, so maybe a newer version works too. I reduced ...
by StuartLittle57
Tue Dec 07, 2021 3:06 pm
Forum: ESP-IDF
Topic: Connect ESP32 to bluetooth classic keyboard
Replies: 4
Views: 7857

Re: Connect ESP32 to bluetooth classic keyboard

I got it to work. The problem is Espressif made a lot of changes to the example on September 8th. Switching to the example from the stable version of IDF: 4.3.1 solved the problem.
by StuartLittle57
Mon Dec 06, 2021 5:06 pm
Forum: ESP-IDF
Topic: Connect ESP32 to bluetooth classic keyboard
Replies: 4
Views: 7857

Connect ESP32 to bluetooth classic keyboard

For a proof of concept I need to connect to a Bluetooth classic keyboard and mouse and read the input. The ESP32 needs to connect to the mouse and the keyboard at the same time (not a priority right now). I can connect to the mouse and if I print the bytes coming from this mouse I can easily decode ...
by StuartLittle57
Mon Dec 06, 2021 4:24 pm
Forum: ESP-IDF
Topic: c++ projects in IDF?
Replies: 2
Views: 4255

Re: c++ projects in IDF?

app_main() is called by C code. If you compile your main file as cpp this function name will be mangled. The solution is to define app_main as extern "C" so it can be called from C. That's all. We use C++ in all our projects. extern "C" void app_main(void) { } Just note that exceptions are disabled ...