GattError

open class GattError

Parses the error numbers according to the gatt_api.h file from BlueDroid stack.

See: Android 5.1 gatt_api.h (and other versions) for details. See also: HCI definitions for other possible HCI errors.

Functions

Link copied to clipboard
open fun parse(error: Int): String
Converts the bluetooth communication status given by other BluetoothGattCallbacks to error name.
Link copied to clipboard
open fun parseConnectionError(error: Int): String
Converts the connection status given by the onConnectionStateChange to error name.
Link copied to clipboard
open fun parseDfuRemoteError(error: Int): String
Parses the error code returned by the DFU service and returns the error message.