apidocs / com.nimmsta.core.android.bluetooth / DeviceBluetoothService / <init>

<init>

DeviceBluetoothService(context: Context, bleDeviceAddress: String, delegate: DeviceBluetoothServiceDelegate? = null, autoConnect: Boolean = true, doConnect: Boolean = true)

Device Bluetooth Service for Android. This service abstracts the Android service to our Task-Based Request-Response-Model. You can read/write characteristics and be notified by a Task instead of a callback where you need to identify the request. It's also possible to manipulate the MTU and be notified about changes. For that a delegate needs to be provided, which also provides events for connection changes and errors.

Author
NIMMSTA Team

Copyright
NIMMSTA GmbH & IBPG 2020

License
NIMMSTA GmbH