package com.codename1.bluetooth.gatt
The client-side GATT model discovered on a remote peripheral:
GattService, GattCharacteristic (read/write/subscribe),
GattDescriptor, notification listeners and ATT status codes.
Instances are constructed by the active port during
BlePeripheral.discoverServices(); application code navigates the
model and issues operations, which route through the owning
peripheral’s serialized operation queue.
Types
class GattCharacteristic | A characteristic of a remote GattService – the unit of data exchange with a BLE peripheral. |
class GattDescriptor | A descriptor of a remote GattCharacteristic. |
interface GattNotificationListener | Receives characteristic value changes (notifications and indications) after subscribing via GattCharacteristic.subscribe(GattNotificationListener). |
class GattService | A service discovered on a remote GATT server via BlePeripheral.discoverServices(). |
enum GattStatus | ATT protocol status codes, used both to interpret remote GATT failures and to respond to requests when acting as a GATT server. |