-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Bluetooth: Immediate Alert Service #43574
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
|
@MariuszSkamra FYI |
b2fbbea to
a4c1fe0
Compare
include/linker/common-rom.ld
Outdated
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.
Not at all opposed to allow statically registered callbacks, but I am not sure how this is properly added.
I see that for e.g. bt_conn_cb, it is added to not only this file, but also some of the ESP32 linker.ld files.
Do you know how this is properly added? If adding it to only here, does it then not work on e.g. the ESP32 devices?
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.
Unfortunately we have to manually add this in ESP32/S2/C3 as well. We are still to figure out a way to overcome this.
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.
Just an update. This issue regarding ESP32 linker script would/will be fixed in this #43659.
include/bluetooth/services/ias.h
Outdated
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.
What is the advantage of doing it this way?
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.
Callbacks are stored in ROM instead of RAM :)
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.
That much I got ;-)
subsys/bluetooth/services/ias.c
Outdated
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.
Why is it called a sample? How about "implementation"?
subsys/bluetooth/services/ias.c
Outdated
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.
What if the ongoing alert has been stopped by the user? In that case, this should start a new one, rather than just returning.
subsys/bluetooth/services/ias.c
Outdated
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.
Setting alert_level should be outside the loop.
alwa-nordic
left a comment
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 IAS spec is not clear on behavior when multiple peers are connected. But I think clearing the alert when any peer disconnects is wrong.
The Alert Level characteristic is not readable. This makes me think that each GATT client should have a separate alert level.
Thalley
left a comment
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.
LGTM on the condition that we mark it as experimental in the Kconfig as well, so that we may revisit the API later more easily
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.
Needs a select EXPERIMENTAL
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.
There should also be " [EXPERIMENTAL]" at the end of the description.
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.
Done
b52abe7 to
a601be6
Compare
|
@szymon-czapracki please rebase |
This commits adds IAS for zephyr bluetooth. Signed-off-by: Szymon Czapracki <[email protected]>
83ec366
Done |
Add Immediate Alert Service