GattError

sealed class GattError

Gatt Error. Called when BluetoothGatt onConnectionStateChange return other than GATT_SUCCESS.

Parameters

errorCode
localizedDescription

Types

Link copied to clipboard

Could not establish a connection in specified period. Maybe when distance for connect is so long or device is currently connected to something else

Link copied to clipboard

The BLE connection failed to be established. This could be due to a variety of reasons, such as the device being out of range, the device being turned off, or a problem with the BLE stack on either device

Link copied to clipboard

The connection interval you requested is unacceptable to the BLE device

Link copied to clipboard

The BLE connection was terminated due to a microphone failure. This could indicate a hardware issue with the microphone or a problem with the audio processing on the device

Link copied to clipboard

The BLE controller is busy and can't handle your request

Link copied to clipboard

A different BLE transaction collided with the current one

Link copied to clipboard

The directed advertising procedure timed out before a connection could be established

Link copied to clipboard

The instant you specified has already passed

Link copied to clipboard

Your device terminated the BLE connection

Link copied to clipboard

The BLE device doesn't support pairing with a unit key

The BLE device terminated the connection because it's low on resources

Link copied to clipboard

The BLE device terminated the connection because it's powering off

Link copied to clipboard

The user on the other end terminated the BLE connection

Link copied to clipboard

The BLE device doesn't allow the command you're trying to send

The parameters you're using for the BLE command are invalid

Link copied to clipboard

The parameters for the Link Manager Protocol (LMP) are invalid

Link copied to clipboard

The LMP Protocol Data Unit (PDU) isn't allowed

Link copied to clipboard

The LMP response timed out

Link copied to clipboard

An unspecified error occurred with the BLE connection

Link copied to clipboard

The BLE device doesn't support a feature that your device needs

Link copied to clipboard
class Error(status: Int) : GattError

GATT error did not recover

Link copied to clipboard

Authentication failed when attempting to connect to the BLE device. This could be due to an incorrect password or pairing key

Link copied to clipboard

The BLE device is busy and cannot handle the request at this time. This could be due to the device processing other requests or performing other tasks

Link copied to clipboard

The BLE connection is congested. This could be due to too many devices being connected to the device or too much data being transferred

Link copied to clipboard

The BLE connection timed out. This could be due to the device being out of range or the device being turned off

Link copied to clipboard

The BLE device's database is full. This could prevent the device from storing new data or updating existing data

Link copied to clipboard

A generic GATT error occurred. This is a catch-all error that could indicate a variety of problems

Link copied to clipboard

A generic GATT failure occurred. This is a catch-all error that could indicate a variety of problems

Link copied to clipboard

An illegal parameter was passed to the GATT function. This could be due to an incorrect value being passed or a parameter being missing

Link copied to clipboard

Insufficient authentication for a given operation

Link copied to clipboard

The connection to the BLE device isn't secure enough

Link copied to clipboard

An internal error occurred on the BLE device. This is a generic error that could indicate a variety of problems

Link copied to clipboard

The data you're trying to send or receive is the wrong length

Link copied to clipboard

A read or write operation was requested with an invalid offset

Link copied to clipboard

The BLE device does not have enough resources to complete the request. This could be due to the device being low on memory or processing power

Link copied to clipboard

GATT read operation is not permitted

Link copied to clipboard

The given request is not supported

Link copied to clipboard

GATT write operation is not permitted

Link copied to clipboard

The BLE device is in the wrong state to complete the request. This could be due to the device not being connected or not being in the correct mode

Functions

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard