-
-
Notifications
You must be signed in to change notification settings - Fork 284
Jira 859. Support BLE descriptor processing. #448
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
Conversation
@bigdinotech , @eriknyquist , please review the code. @russmcinnis , @noelpaz , please check out this new feature. Example sketch included (modified an existing sketch). Please perform system testing. |
There is a curly brace missing in peripheral_explorer.ino. I fixed that to test using a 101 with an LED sketch. the descriptor length was 0 so maybe I need to set something on the peripheral or run another device. Anyway we can't go with the pull request since the sketch doesn't compile. Connecting ... Device name: Disconnecting ... |
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.
fix the missing curly brace in peripheral_explorer.ino example. look at line 135.
Passed system testing for unit testing we need to put a delay(1000) after descriptor.read() in the peripheral_explorer example as Liang noted for this to work so shouldn’t we update the peripheral explorer example to use the delay. |
@russmcinnis , agree and made the change in the sample sketch. Please check out the change in the sketch. |
passed system and unit test |
Feature added: For Central mode, added the support for processing BLE descriptor from a connected Peripheral. Enable the user sketch to access to descriptor value, length info. Code modifications: 1. peripheral_explorer.ino: - Example sketch with added descriptor processing. 2. BLECharacteristic.cpp: - Bug fixed in handling multi-descriptors. 3. BLEDescriptor.cpp: - For constructors, added initialization of descriptor storage and info. - For copy constructor and assignment, take into the account of descripter value and info. - Added API's for readning and returning descriptor info, eg. value, size. 4. BLEDescriptor.h: - Prototyping. 5. BLEDevice.h: - Added descriptor storage declaration. 6. BLECallbacks.cpp: - Added call back event for decriptor arrival. 7. BLECallbacks.h: - Prototyping. 8. BLECharacteristicImp.cpp: - The processing of the descriptor. 9. BLECharacteristicImp.h: - Prototyping. 10. BLEServiceImp.cpp: - Added descriptor info to constructor. - Made copy constructor to be aware of descriptor info. 11. BLEServiceImp.h: - Prototyping.
@yashaswini-hanji , please merge this PR and close out the Jira. |
PR merged and Jira closed |
Feature added:
For Central mode, added the support for processing
BLE descriptor from a connected Peripheral. Enable
the user sketch to access to descriptor value,
length info.
Code modifications:
descriptor storage and info.
the account of descripter value and info.
info, eg. value, size.