-
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
Created the Tutorial walkthrough file for ble_phy_central_example (IDFGH-9638) #10985
Created the Tutorial walkthrough file for ble_phy_central_example (IDFGH-9638) #10985
Conversation
Thanks for your contribution. |
|
||
## Includes | ||
|
||
This example is located in the examples folder of the ESP-IDF under the [ble_phy/phy_cent/main](https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/nimble/ble_phy/phy_cent/). The [main.c](https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/nimble/ble_phy/phy_cent/main/main.c) file located in the main folder contains all the functionality that we are going to review. The header files contained in [main.c](https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/nimble/ble_phy/phy_cent/main/main.c) are: |
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.
The paths are absolute path. If the tutorial is backported to moved to other branch, this path will break. I suggest to instead use relative path, instead of absolute path.
|
||
``` | ||
|
||
The main function starts by initializing the non-volatile storage library. This library allows to save key-value pairs in flash memory and is used by some components such as the Wi-Fi library to save the SSID and password: |
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.
Since this is a BLE application, i suggest to put information related to BLE ( like passkey information) that gets stored in nvs.
|
||
## Read Operation | ||
|
||
`blecent_read` reads the supported LE PHY characteristic. If the peer does not support a required service, characteristic, or descriptor, then the peer lied when it claimed support for the alert notification service. When this happens, or if a GATT procedure fails this function immediately terminates the connection. |
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.
"Then the peer lied when it claimed ...." . This sounds too harsh in a tutorial.
Suggested wording change:
"If the peer does not support a required service, characteristic, or descriptor OR if a GATT procedure fails , then this function immediately terminates the connection."
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.
Thank you @rahult-github for reviewing the walkthrough. I will do the all mentioned changes and modify this walkthrough
|
39e488a
to
3e74b9f
Compare
sha=73c06b5039f4382bfc21fb8bb1bf44355eb3ea89 |
3e74b9f
to
c32c63e
Compare
7595817
to
3c9b54b
Compare
PR merged . Closing |
No description provided.