Skip to content

Add BLE GAP/GATT support to the dev-esp32 branch#3473

Open
pjsg wants to merge 32 commits intonodemcu:dev-esp32from
pjsg:ble
Open

Add BLE GAP/GATT support to the dev-esp32 branch#3473
pjsg wants to merge 32 commits intonodemcu:dev-esp32from
pjsg:ble

Conversation

@pjsg
Copy link
Copy Markdown
Member

@pjsg pjsg commented Oct 24, 2021

Fixes #3469

  • This PR is for the dev branch rather than for the release branch.
  • This PR is compliant with the other contributing guidelines as well (if not, please describe why).
  • I have thoroughly tested my contribution.
  • The code changes are reflected in the documentation at docs/*.

This is the first pass at BLE support. There is some more tidyup to do, and also enabling it is slightly tricky as it is built on top
of the NimBLE stack -- and I can't find a way to force enable that stack from the Kconfig.

You can startup and shutdown the BLE stack multiple times and it doesn't obviously leak memory.

It seems to work in my test environment.

Interested in comments.

Comment thread components/modules/Kconfig Outdated
Comment thread components/modules/Kconfig Outdated
Comment thread components/modules/Kconfig Outdated
Comment thread docs/modules/ble.md Outdated
Comment thread docs/modules/ble.md Outdated
Comment thread docs/modules/ble.md Outdated
Fix capitalization of Bluetooth

Co-authored-by: Marcel Stör <marcelstoer@users.noreply.github.com>
@pjsg pjsg requested a review from marcelstoer January 5, 2022 01:33
@pjsg pjsg dismissed marcelstoer’s stale review January 5, 2022 01:35

Made the requested changes

@pjsg
Copy link
Copy Markdown
Member Author

pjsg commented Feb 20, 2022

I'd like to get this merged -- any more input?

@marcelstoer marcelstoer requested review from jmattsson and removed request for marcelstoer February 20, 2022 21:38
@marcelstoer
Copy link
Copy Markdown
Member

As I can't assess C code I added Johny as a reviewer.

Copy link
Copy Markdown
Member

@jmattsson jmattsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a BT expert, but on the whole this looks good!
A few comments, and a couple of fixes I'd like to see before merging, but don't wait for me to merge once you've addressed that. Let's get this landed :)

(sorry about the delay, as usual...)

Comment thread components/modules/Kconfig
Comment thread components/modules/ble.c
Comment thread components/modules/ble.c Outdated
Comment thread components/modules/ble.c
Comment thread components/modules/ble.c Outdated
Comment thread components/modules/ble.c Outdated
Comment thread components/modules/ble.c Outdated
Comment thread components/modules/ledc.c
Comment thread install.sh
Comment thread docs/modules/ble.md
Comment thread components/modules/ledc.c
@pjsg pjsg changed the title First shot at adding BLE GAP/GATT support to the esp32-idf4 branch First shot at adding BLE GAP/GATT support to the dev-esp32 branch Feb 1, 2024
@pjsg pjsg changed the title First shot at adding BLE GAP/GATT support to the dev-esp32 branch Add BLE GAP/GATT support to the dev-esp32 branch Feb 2, 2024
@jmattsson
Copy link
Copy Markdown
Member

Nice, is there anything else outstanding other than sorting out the merge issues?

Comment thread docs/modules/ble.md

### Type conversions

If the `type` value converts a single item, then that will be the value that is placed into the `value` element. If it converts multiple elements, then the elements will be placed into an array that that will be placed into the `value` element.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'that' is repeated twice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants