gattStatus

abstract val gattStatus: Int?

The GATT status code associated with this error, if available.

Common GATT status codes include:

  • 0x00 (0) - GATT_SUCCESS

  • 0x05 (5) - GATT_INSUFFICIENT_AUTHENTICATION

  • 0x06 (6) - GATT_REQUEST_NOT_SUPPORTED

  • 0x0D (13) - GATT_INVALID_ATTRIBUTE_LENGTH

  • 0x85 (133) - GATT_ERROR (generic error, often timeout)

  • 0x08 (8) - GATT_CONN_TIMEOUT

Return

The GATT status code, or null if not applicable.