function name to call if permission has been granted.
function name to call if permission has been denied.
function name to call if an error occurs.
clears the state of the device.
Attempts to connect to the bluetooth device.
Attempts to get permission for access to the bluetooth device.
Read from a characteristic of a service.
Write to a characteristic of a service.
Check the user has granted permission to use Bluetooth on this device. If permission has not been granted, display the Bluetooth Permissions dialog.
ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION, PERMISSION_BLUETOOTH, PERMISSION_BLUETOOTH_ADMIN, PERMISSION_BLUETOOTH_SCAN, PERMISSION_BLUETOOTH_CONNECT, FEATURE_BLUETOOTH_LE