Skip to content

nimble/host: add Client Supported Features bit masks - #2270

Open
piotrnarajowski wants to merge 1 commit into
apache:masterfrom
piotrnarajowski:cl_sup_feat_masks
Open

nimble/host: add Client Supported Features bit masks#2270
piotrnarajowski wants to merge 1 commit into
apache:masterfrom
piotrnarajowski:cl_sup_feat_masks

Conversation

@piotrnarajowski

@piotrnarajowski piotrnarajowski commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Define possible bit masks for GATT Client Supported Features characteristic value to get rid of magic numbers.

@piotrnarajowski

Copy link
Copy Markdown
Contributor Author

@KKopyscinski FYI

Define and apply possible bit masks for GATT Client
Supported Features characteristic value to ged rid
of magic numbers.
#include "host/ble_uuid.h"
#include "host/ble_gap.h"
#include "ble_hs_priv.h"
#include "../services/gatt/include/services/gatt/ble_svc_gatt.h"

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.

I don't like it, it add hidden service dependency to gatt code

I'm not yet sure on how to handle this though, maybe make those in public host header, or maybe add explicit dependency on that service (and GAP?)

need to think about this a bit more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants