02 .Service 知识点

BluetoothGattServerCallback

onCharacteristicReadRequest

(BluetoothDevice device, int requestId, int offset, BluetoothGattCharacteristic characteristic)

A remote client has requested to read a local characteristic

onCharacteristicWriteRequest

(BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value)

A remote client has requested to write to a local characteristic.

onConnectionStateChange

(BluetoothDevice device, int status, int newState)

Callback indicating when a remote device has been connected or disconnected.

onDescriptorReadRequest

(BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor)

A remote client has requested to read a local descriptor.

onDescriptorWriteRequest

(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value)

A remote client has requested to write to a local descriptor.

onNotificationSent

(BluetoothDevice device, int status)

Callback invoked when a notification or indication has been sent to a remote device.

onServiceAdded

(int status, BluetoothGattService service)

Indicates whether a local service has been added successfully.

results matching ""

    No results matching ""