Is there a way to hide a characteristic?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

If I want to not show a service or characteristic is there way this information can be hidden but still be used by a client that knows it's UUID?

0 Likes
1 Solution

Standard application relies on the LE stack to manage characteristics, for example to check if peer has permissions to read/write, or to check sizes of the arrays.  In this case the characteristics need to be in the GATT database.  This is the shared are used both by application and the stack.  Within these rules characteristics can be labeled with 128 bit vendor specific UUIDs so that nobody other than your specific client knows what the values mean.   You can also provide your security method to allow only your client to read/write characteristics.

 

Contrarily application can register to process all the L2CAP messages received.  In this case application does not need to have characteristics in the database.  But application will be responsible for all verifications, and answering clients read/write requests. 

 

View solution in original post

2 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

I am checking into this one now with the developers.

0 Likes

Standard application relies on the LE stack to manage characteristics, for example to check if peer has permissions to read/write, or to check sizes of the arrays.  In this case the characteristics need to be in the GATT database.  This is the shared are used both by application and the stack.  Within these rules characteristics can be labeled with 128 bit vendor specific UUIDs so that nobody other than your specific client knows what the values mean.   You can also provide your security method to allow only your client to read/write characteristics.

 

Contrarily application can register to process all the L2CAP messages received.  In this case application does not need to have characteristics in the database.  But application will be responsible for all verifications, and answering clients read/write requests.