Skip to content

Conversation

@4rzael
Copy link

@4rzael 4rzael commented Dec 3, 2021

Summary

Currently, BluetoothSerial makes it impossible to run both arduino-esp32 and NimBLE.

How to reproduce the original problem

esp-idf version: release/v4.4

arduino-esp32 version: 2.0.1

Steps:

  • run idf.py menuconfig
  • go to Component Configuration / Bluetooth / Bluetooth Host and set it to NimBLE.
  • try to compile the project. BluetoothSerial will cause issues, as, if I understood correctly, it requires a proper bluetooth host, not only BLE.

Impact

This Pull-Request makes it possible to use arduino-esp32 with NimBLE, by making the compilation BluetoothSerial optional. To fix the issue, you thus need to:

  • run idf.py menuconfig
  • go to Arduino Configuration
    • enable Include only specific Arduino libraries
    • in the submenu, disable Enable BluetoothSerial

We could probably, additionally, make that option depend on the BLE host, but I'm not sure how to do so, nor whether it's a good idea to.

@CLAassistant
Copy link

CLAassistant commented Dec 3, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ Pataclop
❌ 4rzael


Pataclop seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

set(requires spi_flash mbedtls mdns esp_adc_cal wifi_provisioning nghttp)
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt esp_ipc esp_hid)

if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_BluetoothSerial)
Copy link
Member

Choose a reason for hiding this comment

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

this should be done in the source files and not here

Copy link
Author

Choose a reason for hiding this comment

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

Okay ! Wasn't sure which approach was the best, I'll change it :)

@VojtechBartoska VojtechBartoska added the Status: Review needed Issue or PR is awaiting review label Jan 30, 2024
@VojtechBartoska VojtechBartoska added this to the 3.0.0-RC1 milestone Jan 30, 2024
@P-R-O-C-H-Y
Copy link
Member

Closing this PR as the issue no longer exists. Tested with Arduino core master as an idf component without any related compilation errors/ warnings.

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

Labels

Status: Review needed Issue or PR is awaiting review

Projects

Development

Successfully merging this pull request may close these issues.

5 participants