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

NimBLE: Add DIS(Device Information Service) which was missing from port. (IDFGH-4180) #6040

Closed
wants to merge 1 commit into from

Conversation

neokim
Copy link

@neokim neokim commented Oct 29, 2020

Found DIS is missing from porting which already exists in NimBLE and added it to esp-idf.

@CLAassistant
Copy link

CLAassistant commented Oct 29, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Neo Kim 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.

@github-actions github-actions bot changed the title NimBLE: Add DIS(Device Information Service) which was missing from port. NimBLE: Add DIS(Device Information Service) which was missing from port. (IDFGH-4180) Oct 29, 2020
@Alvin1Zhang
Copy link
Collaborator

Thanks for your contribution.

@neokim neokim closed this Oct 29, 2020
@neokim neokim reopened this Oct 29, 2020
@prasad-alatkar
Copy link
Contributor

@neokim Thanks for the PR, I will take a look and update.

@@ -642,6 +642,78 @@
#endif


/*** @apache-mynewt-nimble/nimble/host/services/dis */
#ifndef MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM
#define MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM (-1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Currently we are on nimble-1.2.0 release and yet to migrate to latest nimble 1.3.0 release. Few of the inclusions in latest syscfg.h that you have taken may need to be skipped for IDF specific NimBLE (at least for now). You may refer to esp-nimble-dis for valid inclusions.

Copy link
Author

Choose a reason for hiding this comment

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

@prasad-alatkar There was no change from nimble-1.2.0 to nimble-1.3.0 on ble_svc_dis.c, and esp-nimble-dis is same as the one of nimble-1.2.0.

Actually, the changes in nimble's syscfg.h are just about configuration. The file is being generated by newt's own configuration tool which is alike to menuconfig. But esp-idf doesn't use it and has no configuration tool for nimble, user has no way to change nimble configuration on his/her esp-idf project. I recommend that esp_nimble_cfg.h has as many inclusion as possible so that user can have a variety of options for nimble.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi, sorry for delayed response. Yes, I understand that we are only adding configuration options and nimble-1.2.0 and nimble-1.3.0 are identical from services/dis point of view. I just looked for instances where BLE_SVC_DIS_DEFAULT_READ_PERM is used, and I could not find any. I am still ok with keeping it in esp_nimble_cfg.h given that it is present in upstream NimBLE (CC: @dhrishi ).

#endif

/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
#ifndef MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM
Copy link
Contributor

Choose a reason for hiding this comment

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

Please refer above comment

#endif

/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
#ifndef MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above comment.

#endif

/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
#ifndef MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above comments.

@prasad-alatkar
Copy link
Contributor

Hi @neokim I have left few minor comments, apart from that I am ok with the PR (CC : @dhrishi )

@neokim
Copy link
Author

neokim commented Nov 13, 2020

@prasad-alatkar Thanks for your comments. I’ve just replied.

@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally labels Mar 9, 2023
@rahult-github
Copy link
Collaborator

Changes has been part of IDF code already. So closing this .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants