BlueberrySherbet

core / com.gmail.ayteneve93.blueberrysherbetcore.device / BlueberryDevice

BlueberryDevice

(JVM) abstract class BlueberryDevice<BlueberryService>

Abstract class of BLE device.

You can configure specific options for each BLE device by inheriting this abstract class.

Types

Name Summary
(JVM) BleStatus enum class BleStatus
(JVM) BlueberryConnectionPriority Benum class BlueberryConnectionPriority
(JVM) BluetoothState enum class BluetoothState
(JVM) PhyOption enum class PhyOption

Constructors

Name Summary
(JVM) <init> Abstract class of BLE device.BlueberryDevice()

Properties

Name Summary
(JVM) autoConnect var autoConnect: Boolean
(JVM) blueberryService val blueberryService: BlueberryService
(JVM) bluetoothState val bluetoothState: ObservableField<BluetoothState!>
(JVM) mBluetoothGatt lateinit var mBluetoothGatt: BluetoothGatt
(JVM) mtuBinding val mtuBinding: ObservableField<Int>
(JVM) rssiBinding val rssiBinding: ObservableField<Int>
(JVM) rxPhyBinding val rxPhyBinding: ObservableField<Int>
(JVM) txPhyBinding val txPhyBinding: ObservableField<Int>

Functions

Name Summary
(JVM) connect Basic Connection Controlling Operationfun connect(): Unit
(JVM) disconnect fun disconnect(): Unit
(JVM) dismissRssiUpdateInterval fun dismissRssiUpdateInterval(): Unit
(JVM) equals Override Functionsopen fun equals(other: Any?): Boolean
(JVM) hashCode open fun hashCode(): Int
(JVM) onDeviceConnected open fun onDeviceConnected(): Unit
(JVM) onDeviceConnecting open fun onDeviceConnecting(): Unit
(JVM) onDeviceDisconnected Device Life Cycle Callbackopen fun onDeviceDisconnected(): Unit
(JVM) onDeviceDisconnecting open fun onDeviceDisconnecting(): Unit
(JVM) onMtuValueChanged open fun onMtuValueChanged(mtu: Int): Unit
(JVM) onPhyValueChanged open fun onPhyValueChanged(txPhy: Int, rxPhy: Int): Unit
(JVM) onRssiValueChanged open fun onRssiValueChanged(rssiValue: Int): Unit
(JVM) onServicesDiscovered open fun onServicesDiscovered(): Unit
(JVM) readPhy fun readPhy(): Unit
(JVM) requestMtu fun requestMtu(mtu: Int): Unit
(JVM) setConnectionPriority Change Connection Priorityfun setConnectionPriority(connectionPriority: BlueberryConnectionPriority): Unit
(JVM) setPreferredPhy fun setPreferredPhy(txPhy: Int, rxPhy: Int): Unit
(JVM) setRssiUpdateInterval fun setRssiUpdateInterval(intervalTime: Long, intervalTimeUnit: TimeUnit): Unit
(JVM) setServiceImpl abstract fun setServiceImpl(): BlueberryService
(JVM) toString open fun toString(): String