public class ReadWriteFailBluetoothGatt extends UnitTestBluetoothGatt
UnitTestBluetoothGatt
which will fail all reads/writes. Use ReadWriteFailBluetoothGatt.FailType
to specify what
type of failure.Modifier and Type | Class and Description |
---|---|
static class |
ReadWriteFailBluetoothGatt.FailType
Enumeration used to specify the type of failure.
|
IBluetoothGatt.DefaultFactory, IBluetoothGatt.Factory
MAX_DELAY_TIME, MIN_DELAY_TIME
DEFAULT_FACTORY
Constructor and Description |
---|
ReadWriteFailBluetoothGatt(IBleDevice device,
GattDatabase gattDb) |
ReadWriteFailBluetoothGatt(IBleDevice device,
GattDatabase gattDb,
ReadWriteFailBluetoothGatt.FailType failType) |
ReadWriteFailBluetoothGatt(IBleDevice device,
GattDatabase gattDb,
ReadWriteFailBluetoothGatt.FailType failType,
Interval delayTime) |
Modifier and Type | Method and Description |
---|---|
void |
sendReadResponse(BleCharacteristic characteristic,
byte[] data)
Called by
UnitTestBluetoothGatt.readCharacteristic(BleCharacteristic) to send the response of the read. |
abortReliableWrite, beginReliableWrite, closeGatt, connect, disconnect, discoverServices, equals, executeReliableWrite, getAuthRetryValue, getBleDevice, getBleService, getDelayTime, getGatt, getNativeServiceList, getRssiValue, isGattNull, preDisconnect, readCharacteristic, readDescriptor, readPhy, readRemoteRssi, refreshGatt, requestConnectionPriority, requestMtu, sendReadDescriptorResponse, sendWriteDescResponse, sendWriteResponse, setCharacteristicNotification, setCharValue, setDatabase, setDelayTime, setDescValue, setGatt, setGattNull, setPhy, setServicesDiscovered, setToConnected, setToConnecting, writeCharacteristic, writeDescriptor
public ReadWriteFailBluetoothGatt(IBleDevice device, GattDatabase gattDb)
public ReadWriteFailBluetoothGatt(IBleDevice device, GattDatabase gattDb, ReadWriteFailBluetoothGatt.FailType failType)
public ReadWriteFailBluetoothGatt(IBleDevice device, GattDatabase gattDb, ReadWriteFailBluetoothGatt.FailType failType, Interval delayTime)
public void sendReadResponse(BleCharacteristic characteristic, byte[] data)
UnitTestBluetoothGatt
UnitTestBluetoothGatt.readCharacteristic(BleCharacteristic)
to send the response of the read.sendReadResponse
in class UnitTestBluetoothGatt