public class BleDeviceConfig_UnitTest extends BleDeviceConfig
BleDeviceConfig.gattFactory
, and BleDeviceConfig.bluetoothDeviceFactory
to the default unit testing equivalents.
This provides implementations that will "just work", with the exception of reads/writes, as no
GattDatabase
is implemented.UnitTestBluetoothDevice
,
UnitTestBluetoothGatt
BleDeviceConfig.AuthTransactionFactory<T extends BleTransaction.Auth>, BleDeviceConfig.DefaultBondFilter, BleDeviceConfig.InitTransactionFactory<T extends BleTransaction.Init>, BleDeviceConfig.RefreshOption
BleNodeConfig.DefaultHistoricalDataLogFilter, BleNodeConfig.DefaultTaskTimeoutRequestFilter, BleNodeConfig.HistoricalDataFactory, BleNodeConfig.HistoricalDataLogFilter
Modifier and Type | Field and Description |
---|---|
GattDatabase |
m_gattDatabase |
allowDuplicatePollEntries, alwaysBondOnConnect, autoBondFixes, autoEnableNotifiesOnReconnect, autoGetServices, autoNegotiateMtuOnReconnect, autoReconnectDeviceWhenBleTurnsBackOn, bluetoothDeviceFactory, bondFilter, bondingFailFailsConnection, bondRetryFilter, cacheDeviceOnUndiscovery, clearGattOnOtaSuccess, connectFailRetryConnectingOverall, connectionBugFixTimeout, DEFAULT_CONNECTION_BUG_FIX_TIMEOUT, DEFAULT_GATT_REFRESH_DELAY, DEFAULT_MAX_BOND_RETRIES, DEFAULT_MAX_CONNECTION_FAIL_HISTORY_SIZE, DEFAULT_MINIMUM_SCAN_TIME, DEFAULT_RSSI_AUTO_POLL_RATE, DEFAULT_RSSI_MAX, DEFAULT_RSSI_MIN, DEFAULT_RUNNING_AVERAGE_N, DEFAULT_SCAN_KEEP_ALIVE, DEFAULT_TX_POWER, defaultAuthFactory, defaultDeviceStates, defaultInitFactory, defaultTransactionAtomicity, defaultTxPower, equalOpportunityReadsWrites, forceBondDialog, forceBondHackInterval, gattFactory, gattRefreshDelay, gattRefreshOption, includeOtaReadWriteTimesInAverage, manageLastDisconnectOnDisk, maxConnectionFailHistorySize, minScanTimeNeededForUndiscovery, mtuTestCallback, nForAverageRunningReadTime, nForAverageRunningWriteTime, phyOptions, reconnectFilter, retainDeviceWhenBleTurnsOff, rssi_max, rssi_min, rssiAutoPollRate, saveNameChangesToDisk, serviceDiscoveryDelay, tryBondingWhileDisconnected, tryBondingWhileDisconnected_manageOnDisk, undiscoverDeviceWhenBleTurnsOff, undiscoveryKeepAlive, useGattRefresh, useLeTransportForBonding
alwaysUseAutoConnect, autoStripeWrites, DEFAULT_MTU_SIZE, disconnectIsCancellable, GATT_READ_MTU_OVERHEAD, GATT_WRITE_MTU_OVERHEAD, historicalDataFactory, historicalDataLogFilter, INVALID_TX_POWER, taskTimeoutRequestFilter
Constructor and Description |
---|
BleDeviceConfig_UnitTest() |
BleDeviceConfig_UnitTest(GattDatabase gattDatabase)
This constructor allows you to pass in a
GattDatabase instance to be used for the default BleDeviceConfig.gattFactory instance. |
clone, newNulled
getTimeout, nullOut, readJSON, writeJSON
public GattDatabase m_gattDatabase
public BleDeviceConfig_UnitTest()
public BleDeviceConfig_UnitTest(GattDatabase gattDatabase)
GattDatabase
instance to be used for the default BleDeviceConfig.gattFactory
instance. If you are overriding
the default, then this constructor doesn't provide anything special. This is just a convenience if you are using the default gatt implementation.