BluetoothGattServer.SendResponse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SendResponse(BluetoothDevice, Int32, GattStatus, Int32, Byte[]) | |
SendResponse(BluetoothDevice, Int32, ProfileState, Int32, Byte[]) |
Send a response to a read or write request to a remote device. |
SendResponse(BluetoothDevice, Int32, GattStatus, Int32, Byte[])
public bool SendResponse (Android.Bluetooth.BluetoothDevice device, int requestId, Android.Bluetooth.GattStatus status, int offset, byte[] value);
member this.SendResponse : Android.Bluetooth.BluetoothDevice * int * Android.Bluetooth.GattStatus * int * byte[] -> bool
Parameters
- device
- BluetoothDevice
- requestId
- Int32
- status
- GattStatus
- offset
- Int32
- value
- Byte[]
Returns
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SendResponse(BluetoothDevice, Int32, ProfileState, Int32, Byte[])
Send a response to a read or write request to a remote device.
[Android.Runtime.Register("sendResponse", "(Landroid/bluetooth/BluetoothDevice;III[B)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool SendResponse (Android.Bluetooth.BluetoothDevice? device, int requestId, Android.Bluetooth.ProfileState status, int offset, byte[]? value);
[<Android.Runtime.Register("sendResponse", "(Landroid/bluetooth/BluetoothDevice;III[B)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SendResponse : Android.Bluetooth.BluetoothDevice * int * Android.Bluetooth.ProfileState * int * byte[] -> bool
Parameters
- device
- BluetoothDevice
The remote device to send this response to
- requestId
- Int32
The ID of the request that was received with the callback
- status
- ProfileState
The status of the request to be sent to the remote devices
- offset
- Int32
Value offset for partial read/write response
- value
- Byte[]
The value of the attribute that was read/written (optional)
Returns
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.