first of all, thanks for the new ESP32
My question relates to the Bluedroid stack provided in the IDF:
I've already implemented the HCI advertising for providing IPSP profile, but currently I need a little bit of help regarding the structure of the Bluetooth stack initialisation.
Current procedure:
esp_bt_controller_init()
esp_vhci_host_register_callback(...)
<Sending all necessary commands to the HCI for advertising>
Now I need to init the L2CAP for callbacks & initialisation.
How should I proceed?
If I call L2CA_Register, nothing happens. If I try to request a connection (L2CA_ConnectReq), I get:
Code: Select all
BT: L2CAP connect req - BTU not ready
Code: Select all
BT: bt host error /home/beni/sync/Projects/FH/esp/esp-idf/components/bt/bluedroid/osi/fixed_queue.c
I will provide the implementation of course either as example or a PR on GitHub.
Greetings