I would like to know what is the difference between attributes and service in GATT in BLE specification. and where we can find attributes, are they in service, caracteristics or in descriptors. thanks
相关问题
- what is the difference between bounded and unbound
- Exchange data between google-glass and a android d
- Sending and Receiving an Invitation with Multipeer
- CoreBluetooth - Can connectPeripheral be called mu
- How can I establish an AVRCP connection from Windo
相关文章
- Android 4.4: Bluetooth Low Energy; Connect without
- Why the address of my BluetoothDevice changes ever
- Detect or Approximate Bluetooth Latency on Android
- Android Bluetooth - Paired vs Connected, what'
- bluetoothctl No default controller available
- Bluetooth LE Scanning Sometimes Doesn't Find D
- Can we wakeup the Android app via bluetooth or BLE
- UWP BLE device pairing
In summary ... services, characteristics and descriptors ... are attributes :-)
The BLE standard provides the ATT protocol that defines the concept of attributes. All attributes are defined inside a table and they have an handle, a type (with an UUID), a value (and permissions). On top of ATT protocol in the BLE stack you have GATT and GAP. The GATT protocol defines services, characteristics and descriptors and each of them is an attribute. For example, a characteristic is an attribute with an handle, a type (an UUID that tells us that the attribute is a characteristic) and a value (the characteristic properties with handle to the attribute value and so on). Inside the characteristic you have an attribute that is the value of the characteristic and one or more decriptors that are attributes themselves.
You can see the attribute concept as the abstract type you can define concrete types like service, characteristic and descriptors.
I can suggest to see the following video (intro on BLE) by Nordic :
https://www.youtube.com/watch?v=BZwOrQ6zkzE
Paolo.