-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(NimBLE) Example for L2CAP COC Communication (IDFGH-7474) #9044
Comments
Hi @mickeyl, we have added an example for this under the name - ble_l2cap_coc. |
@IshaESP Great, thanks a lot, I will have a look! I have since implemented my first bits and they seem to work fine and stable although I have problems with memory management (IMHO the NIMBLE memory pool functions are not very well documented), so I'm looking forward to checking out your example. |
I wonder why you don't never release any mbuf instances (e.g., in |
Hi @mickeyl , mbuf mangement ( allocation / free ) is taken care of by the underlying stack. If an application needs to use the data received from stack via events , it is advisable to make a copy of it and store if it needs to be used later on. Once the control goes back to stack ( say after the event posting functionality is over), then stack would taking the decision of freeing up the mbuf that was allocated by it. |
@rahult-github Very interesting. Like I said, this doesn't go with my findings. If remove e.g. the |
Could we get a similar example for Bluedroid LE, or does it function using the Bluetooth Classic L2CAP API? |
(I'm on an ESP32-C3)
I'd like to see an example for using an ESP32C3 via BLE L2CAP connection oriented channel.
I've augmented the standard
blehr
configuration withCONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM=1
and enhanced the sample with
but apparently the l2cap event handler callback does not get called.
Is anything else necessary to get l2cap channel communication working?
The text was updated successfully, but these errors were encountered: