-
Notifications
You must be signed in to change notification settings - Fork 535
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
Added demo for BLE #2801
base: master
Are you sure you want to change the base?
Added demo for BLE #2801
Conversation
[Experimental Bot, please feedback here] Fill In The Commit Message: This PR contains a Commit with an Empty Commit Message. Please fill in the Commit Message with the PR Summary. NuttX PR Requirements ReviewWhile the provided information is a good start, it does not fully meet the NuttX PR requirements. Here's a breakdown: Strengths:
Areas for improvement:
Recommendations:
By providing this additional information, your PR will be more comprehensive and better aligned with NuttX requirements. |
Very cool @robertc2000 !! :-) Could you please add some documentation too (https://github.com/apache/nuttx/tree/master/Documentation)? :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code formatting issues see: https://github.com/apache/nuttx-apps/actions/runs/11580827866/job/32250505341?pr=2801
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please copy the PR message as commit message
please fix the style issue report here:
you can run this command locally before updating the patch:
|
Summary
Created a minimal demo application for Bluetooth. It works by displaying some data over Bluetooth and the user can connect to the device running it on NuttX and read this data.
This can work in 2 scenarios: a real scenario, in which data from the BME680 (temperature, humidity, etc..) is used and the user will be able to read it. The second scenario involves displaying some dummy data (hardcoded values) for testing purposes.
This application can serve as an example for users implementing more complex application using Bluetooth on NuttX.
Testing
I used the ESP32-Sparrow (which includes the BME680 sensor) and the ESP32-devkitc boards for testing.
The Bluetooth stack starts by default with advertising when it initializes, however I noticed that enabling advertising in the stack does not work (at least on ESP32). However, when scanning is also enabled, the device starts advertising. Therefore, in our application, during the BLE services initialization part, I also enable scanning as a temporary workaround in order to make sure the device advertises and the user can see it and connect to it.