BleDeviceManagerConfiguration

public class BleDeviceManagerConfiguration

This class represents the Bluetooth configuration for the system.

This class allows the developer to tinker with the BLE timings of the system in order to provide the best user experience possible. Most of the time, the default values can be used.

For now, only timeouts are configured with this class.

Use the Builder class to get a valid configuration.

Fields

DEFAULT_CONNECTION_TIMEOUT

public static final int DEFAULT_CONNECTION_TIMEOUT

Default timeout for a connection operation, in seconds.

DEFAULT_DISCOVERY_TIMEOUT

public static final int DEFAULT_DISCOVERY_TIMEOUT

Default timeout for a device discovery, in seconds.

DEFAULT_READ_TIMEOUT

public static final int DEFAULT_READ_TIMEOUT

Default timeout for a read (characteristics, descriptors) operation, in seconds.

DEFAULT_RECONNECTION_TIMEOUT

public static final int DEFAULT_RECONNECTION_TIMEOUT

Default timeout for a Link Loss recovery, in seconds.

DEFAULT_WRITE_TIMEOUT

public static final int DEFAULT_WRITE_TIMEOUT

Default timeout for a write (characteristics, descriptors) operation, in seconds.

MAX_TIMEOUT

public static final int MAX_TIMEOUT

Maximum timeout for any BLE operation, except Link Loss, in seconds.

Methods

getConnectionTimeoutMillis

public long getConnectionTimeoutMillis()

Get the connection timeout, in milliseconds.

Returns

A integer with the connection timeout.

getConnectionTimeoutSeconds

public int getConnectionTimeoutSeconds()

Get the connection timeout, in seconds.

Returns

A integer with the connection timeout.

getDiscoveryTimeoutMillis

public long getDiscoveryTimeoutMillis()

Get the discovery timeout, in milliseconds.

Returns

A integer with the discovery timeout.

getDiscoveryTimeoutSeconds

public int getDiscoveryTimeoutSeconds()

Get the discovery timeout, in seconds.

Returns

A integer with the discovery timeout.

getReadTimeoutMillis

public long getReadTimeoutMillis()

Get the read timeout, in milliseconds.

Returns

A integer with the read timeout.

getReadTimeoutSeconds

public int getReadTimeoutSeconds()

Get the read timeout, in seconds.

Returns

A integer with the read timeout.

getReconnectionTimeoutMillis

public long getReconnectionTimeoutMillis()

Get the Link Loss recovery timeout, in milliseconds.

See de.sensry.kallisto.service.listeners.events.SystemEventType.LINK_LOSS.

Returns

A integer with the Link Loss recovery timeout.

getReconnectionTimeoutSeconds

public int getReconnectionTimeoutSeconds()

Get the Link Loss recovery timeout, in seconds.

See de.sensry.kallisto.service.listeners.events.SystemEventType.LINK_LOSS.

Returns

A integer with the Link Loss recovery timeout.

getWriteTimeoutMillis

public long getWriteTimeoutMillis()

Get the write timeout, in milliseconds.

Returns

A integer with the write timeout.

getWriteTimeoutSeconds

public int getWriteTimeoutSeconds()

Get the write timeout, in seconds.

Returns

A integer with the write timeout.