OperationStatus

sealed class OperationStatus

GATT operation status.

Some of the status codes are defined by the Bluetooth Specification, others are used only in the library to indicate specific conditions.

Read more in Bluetooth Specification, Vol 3 (Host), Part F (ATT), 3.4.1.1 ATT_ERROR_RSP: link.

Inheritors

Types

Link copied to clipboard
open class ApplicationError(val code: Int) : OperationStatus

A generic application level error.

Link copied to clipboard

No attribute found within the given attribute handle range.

Link copied to clipboard

The attribute cannot be read using the Long Read procedure.

Link copied to clipboard

Device is busy.

Client Characteristic Configuration Descriptor Improperly Configured.

Link copied to clipboard

A remote device connection is congested.

Link copied to clipboard

GATT connection timed out, likely due to the remote device being out of range or not advertising as connectable.

Link copied to clipboard

The Encryption Key Size used for encrypting this link is too short.

Link copied to clipboard

Most generic GATT error code.

Link copied to clipboard

Insufficient authentication for a given operation.

Link copied to clipboard

Insufficient authorization for a given operation.

Link copied to clipboard

Insufficient encryption for a given operation.

Link copied to clipboard

Insufficient Resources to complete the request.

Link copied to clipboard

A write operation exceeds the maximum length of the attribute.

Link copied to clipboard

The attribute handle given was not valid on this server.

Link copied to clipboard

A read or write operation was requested with an invalid offset.

Link copied to clipboard

The attribute PDU was invalid.

Link copied to clipboard
Link copied to clipboard

The prepare write queue is full.

Link copied to clipboard

Procedure Already in Progress.

Link copied to clipboard
open class ProfileError(val code: Int) : OperationStatus

Common Profile and Service Error Codes.

Link copied to clipboard

GATT read operation is not permitted.

Link copied to clipboard

An unknown internal error occurred when executing the operation.

Link copied to clipboard

The given request is not supported.

Link copied to clipboard

The characteristic does not support subscribing for value change.

Link copied to clipboard

A GATT operation completed successfully.

Link copied to clipboard
data class UnknownError(val code: Int) : OperationStatus

Unknown error.

Link copied to clipboard

The attribute request that was requested has encountered an error that was unlikely, and therefore could not be completed as requested.

Link copied to clipboard

The attribute parameter value was not allowed.

Link copied to clipboard

GATT write operation is not permitted.

Link copied to clipboard

Write Request Rejected.

Properties

Link copied to clipboard
open val code: Int
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String