In Bluetooth Low Energy (BLE), what is the primary role of a service?
Think about how BLE organizes data to represent device features.
A service in BLE groups related characteristics to represent a specific feature or function of the device, like a heart rate monitor service grouping all related data points.
What is the expected output when reading a BLE characteristic that holds the battery level at 85%?
gatttool -b 00:11:22:33:44:55 --char-read --handle=0x0025
Battery level is usually represented as a percentage in decimal.
The output shows the value in hexadecimal. 85 decimal is 0x55 in hex, so the output shows '55' as hex bytes.
You want to create a custom BLE service with UUID 12345678-1234-5678-1234-56789abcdef0 and add a characteristic with UUID abcdef01-1234-5678-1234-56789abcdef0 that supports read and notify. Which configuration snippet correctly defines this in a typical BLE GATT server?
Check which properties allow reading and notifying.
The characteristic must support 'read' to allow clients to read its value and 'notify' to send updates asynchronously. Options with 'write' do not match the requirement.
You have configured a BLE characteristic to support notifications, but the client device never receives updates. Which is the most likely cause?
Think about what the client must do to receive notifications.
Clients must write to the CCCD to enable notifications. Without this, the server will not send notification updates to the client.
Arrange the following steps in the correct order to discover services and characteristics on a BLE device.
Think about the logical sequence from connection to data access.
You must first connect, then discover services, then discover characteristics within those services, and finally read or subscribe to those characteristics.
