Skip to content

Use indications for uplink - #93

Merged
sam-golioth merged 2 commits into
mainfrom
use_indications_for_uplink
Oct 1, 2025
Merged

Use indications for uplink#93
sam-golioth merged 2 commits into
mainfrom
use_indications_for_uplink

Conversation

@sam-golioth

Copy link
Copy Markdown
Contributor

Add a discovery step for CCC descriptors. If the characteristic supports indications, use that, otherwise fall back to reads.

Signed-off-by: Sam Friedman <sam@golioth.io>

@hasheddan hasheddan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

Comment thread gateway/src/bt/uplink.c Outdated
if (err)
{
LOG_ERR("BT subscribe request failed: %d", err);
bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For consistency (can we enforce?):

Suggested change
bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);
(void) bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);

Comment thread gateway/src/bt/uplink.c Outdated
if (err)
{
LOG_ERR("BT read request failed: %d", err);
bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);
(void) bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);

Signed-off-by: Sam Friedman <sam@golioth.io>
@sam-golioth
sam-golioth force-pushed the use_indications_for_uplink branch from 96ae5d2 to 5cbf853 Compare October 1, 2025 19:33
@sam-golioth
sam-golioth merged commit 79e626c into main Oct 1, 2025
9 checks passed
@sam-golioth
sam-golioth deleted the use_indications_for_uplink branch October 1, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants