-
Notifications
You must be signed in to change notification settings - Fork 3k
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: Data sent event parameter is useless information #13726
Comments
On cordio it is always a single packet that is reported by the handler so 1 is hardcoded. We need to add two information to the event to make it more useful:
I commented yesterday on an issue asking for the connection handle. We will issue a PR to improve the situation in the upcoming Sprint. |
I am working on a PR right now. Thanks for the quick response. Can you link to the issue you are referring to? |
I also think the I will issue a PR for this as well. |
Here's the issue I'm referring to: #12602
Many thanks for the PR and thanks for thinking of the consistency. |
Yes, I'm doing that as we type. I'm planning to do two PRs -- 1.) one to change the parameters passed into the above-mentioned functions and I was first planning to use the same datatype for all of these functions ( |
Using separate data type is more flexible. For instance, in onUpdatesEnabled we can pass if notification or indication was enabled. |
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
I believe this can be closed as #13734 has been merged. |
Description of defect
The information passed to the
onDataSent
callback handler is a static1
and is therefore useless information...mbed-os/connectivity/FEATURE_BLE/source/cordio/source/GattServerImpl.cpp
Lines 1514 to 1517 in ad40b1b
It would be better to include the
GattAttribute::Handle_t
of the specific characteristic for which the event is related to.Target(s) affected by this defect ?
All
Toolchain(s) (name and version) displaying this defect ?
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
What version of Mbed-os are you using (tag or sha) ?
ad40b1b
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
appdirs 1.4.3
asn1ate 0.6.0
attrs 19.3.0
beautifulsoup4 4.6.3
cbor 1.0.0
certifi 2019.11.28
cffi 1.14.1
chardet 3.0.4
Click 7.0
cmsis-pack-manager 0.2.10
cobs 1.1.4
colorama 0.3.9
crc16 0.1.1
crccheck 0.6
cryptography 2.9.2
cycler 0.10.0
ecdsa 0.15
elftools 0.1.0.dev0
fasteners 0.15
future 0.16.0
futures 3.1.1
fuzzywuzzy 0.18.0
hidapi 0.9.0.post2
icetea 1.2.4
idna 2.7
imgtool 1.6.0
importlib-metadata 1.6.0
intelhex 2.2.1
Jinja2 2.10.3
jsonmerge 1.7.0
jsonschema 2.6.0
junit-xml 1.8
kiwisolver 1.2.0
lockfile 0.12.2
Logbook 1.5.3
manifest-tool 1.5.2
MarkupSafe 1.1.1
matplotlib 3.3.0
mbed-cli 1.10.4
mbed-cloud-sdk 2.0.8
mbed-flasher 0.10.1
mbed-greentea 1.7.4
mbed-host-tests 1.5.10
mbed-ls 1.7.12
mbed-os-tools 0.0.15
milksnake 0.1.5
monotonic 1.5
numpy 1.19.1
pc-ble-driver-py 0.14.2
Pillow 7.2.0
pip 20.2
pkg-resources 0.0.0
prettytable 0.7.2
protobuf 3.5.2.post1
psutil 5.6.6
pyasn1 0.2.3
pycparser 2.20
pycryptodome 3.9.8
pyelftools 0.25
pyparsing 2.4.7
pyrsistent 0.16.0
pyserial 3.4
python-dateutil 2.8.1
python-dotenv 0.14.0
pyusb 1.0.2
PyYAML 4.2b1
requests 2.20.1
semver 2.10.2
setuptools 46.1.3
six 1.12.0
soupsieve 2.0
trollius 2.1.post2
urllib3 1.24.2
wheel 0.34.2
wrapt 1.12.1
yattag 1.13.2
zipp 3.1.0
How is this defect reproduced ?
Try to use onDataSent in BLE stack
The text was updated successfully, but these errors were encountered: