Class AndroidBluetoothServerGattCallback
Android BLE GATT server callback. Serves requests from clients who wish to read the device ID characteristic.
Inheritance
System.Object
AndroidBluetoothServerGattCallback
Namespace: Sensus.Android.Probes.Context
Assembly: SensusAndroid.dll
Syntax
public class AndroidBluetoothServerGattCallback : BluetoothGattServerCallback
Constructors
AndroidBluetoothServerGattCallback(BluetoothGattService, BluetoothGattCharacteristic)
Declaration
public AndroidBluetoothServerGattCallback(BluetoothGattService service, BluetoothGattCharacteristic characteristic)
Parameters
Type | Name | Description |
---|---|---|
Android.Bluetooth.BluetoothGattService | service | |
Android.Bluetooth.BluetoothGattCharacteristic | characteristic |
Properties
Server
Declaration
public BluetoothGattServer Server { get; set; }
Property Value
Type | Description |
---|---|
Android.Bluetooth.BluetoothGattServer |
Methods
OnCharacteristicReadRequest(BluetoothDevice, Int32, Int32, BluetoothGattCharacteristic)
Called when a client wishes to read a characteristic from the service.
Declaration
public override void OnCharacteristicReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattCharacteristic characteristic)
Parameters
Type | Name | Description |
---|---|---|
Android.Bluetooth.BluetoothDevice | device | Client device making the read request. |
System.Int32 | requestId | Request identifier. |
System.Int32 | offset | Offset. |
Android.Bluetooth.BluetoothGattCharacteristic | characteristic | Characteristic to read. |
OnServiceAdded(GattStatus, BluetoothGattService)
Declaration
public override void OnServiceAdded(GattStatus status, BluetoothGattService service)
Parameters
Type | Name | Description |
---|---|---|
Android.Bluetooth.GattStatus | status | |
Android.Bluetooth.BluetoothGattService | service |