Android.Bluetooth.BluetoothGattServerCallback.OnCharacteristicWriteRequest Method
A remote client has requested to write to a local characteristic.

Syntax

[Android.Runtime.Register("onCharacteristicWriteRequest", "(Landroid/bluetooth/BluetoothDevice;ILandroid/bluetooth/BluetoothGattCharacteristic;ZZI[B)V", "GetOnCharacteristicWriteRequest_Landroid_bluetooth_BluetoothDevice_ILandroid_bluetooth_BluetoothGattCharacteristic_ZZIarrayBHandler")]
public virtual void OnCharacteristicWriteRequest (BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, bool preparedWrite, bool responseNeeded, int offset, byte[] value)

Parameters

device
The remote device that has requested the write operation
requestId
The Id of the request
characteristic
Characteristic to be written to.
preparedWrite
true, if this write operation should be queued for later execution.
responseNeeded
true, if the remote device requires a response
offset
The offset given for the value
value
The value the client wants to assign to the characteristic

Remarks

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

An application must call BluetoothGattServer.SendResponse(BluetoothDevice, System.Int32, System.Int32, System.Int32, System.Int32) to complete the request.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18