Skip to content
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

BLE Codespace Reduction #7702

Closed
1 task done
mrengineer7777 opened this issue Jan 11, 2023 · 7 comments
Closed
1 task done

BLE Codespace Reduction #7702

mrengineer7777 opened this issue Jan 11, 2023 · 7 comments
Assignees
Labels
Area: BT&Wifi BT & Wifi related issues Type: Feature request Feature request for Arduino ESP32
Milestone

Comments

@mrengineer7777
Copy link
Collaborator

Related area

BLE

Hardware specification

ESP32

Is your feature request related to a problem?

I was browsing through the Arduino libraries, learning how xTaskCreate is used and noticed the BLE library includes https://github.com/espressif/arduino-esp32/blob/master/libraries/BLE/src/FreeRTOS.cpp and https://github.com/espressif/arduino-esp32/blob/master/libraries/BLE/src/RTOS.h. I believe this functionality already exists in the IDF and is duplicated here.

Describe the solution you'd like

Remove FreeRTOS.cpp and RTOS.h. Reference native functions instead.

Describe alternatives you've considered

Current code works but likely takes more space, and FreeRTOS definitions may diverge from IDF.

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@mrengineer7777 mrengineer7777 added the Type: Feature request Feature request for Arduino ESP32 label Jan 11, 2023
@SuGlider SuGlider self-assigned this Jan 11, 2023
@SuGlider
Copy link
Collaborator

@mrengineer7777 - Thanks for noticing and reporting it!
I'll change it to use just one single FreeRTOS version.

@mrengineer7777
Copy link
Collaborator Author

When removing BLE...FreeRTOS.cpp, you may also need to update

libraries/BLE/src/FreeRTOS.cpp

@me-no-dev
Copy link
Member

those files come from the original library that Neil Colban created. There might be some functionality that is needed there. Maybe just rename it to something more sane?

@VojtechBartoska VojtechBartoska added the Area: BT&Wifi BT & Wifi related issues label Jan 12, 2023
@SuGlider
Copy link
Collaborator

SuGlider commented Jan 12, 2023

I'll compare the local RTOS.h and local FreeRTOS.cpp to the current IDF version.
So far it seems to be just a namespace issue.
I'll report here the conclusions.

@SuGlider
Copy link
Collaborator

This is a change that will take effect when the NimBLE library be released. #9878
@lucasssvaz - PTAL.

@SuGlider SuGlider removed their assignment Feb 13, 2025
@mrengineer7777
Copy link
Collaborator Author

This is a change that will take effect when the NimBLE library be released. #9878 @lucasssvaz - PTAL.

Interesting! For legacy reasons we are still stuck on arduino-esp32 2.x. We recently started using BLE and quickly had to switch to NimBLE because of performance and memory issues with the default BLE client. NimBLE has been great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: BT&Wifi BT & Wifi related issues Type: Feature request Feature request for Arduino ESP32
Projects
Development

No branches or pull requests

6 participants