This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

why does GATT use Characteristic

Suppose I want my BT peripheral to provide Measured value of sensor X and Location of sensor.

Currently I have to send the following attributes

Service Attrinbute Characteristic attribute for measurement Attribute with actual measured value Characteristic attribute for location Attribute with actual location

Why do we need the Characteristic row? All the information in it seems redundant to me and and I can get all of the info by just looking at the columns of the Attribute with the actual value (e.g the three things in the value field of the Characteristic attribute

  1. read/write/notify can be judged from Permission column of the attribute corresponding to the value,
  2. UUID of measurement can be obtained from UUID column of the attribute corresponding to the value,
  3. Handle from the Handle column of the attribute corresponding to the value,

Hence, it just seems meaningless overhead to me?

I am sure I'm missing something, so enlighten me! :)

Parents Reply Children
No Data
Related