public class DeviceConnectionError
extends java.lang.Object
KontaktDeviceConnection
possible errors.Modifier and Type | Field and Description |
---|---|
static int |
ERROR_AUTHENTICATION
Error code informing that unexpected error has occured while attempting
beacon authentication.
|
static int |
ERROR_BATCH_WRITE_INSTANCE_ID
Error code informing that Batch write operation failed during InstanceId write
|
static int |
ERROR_BATCH_WRITE_INTERVAL
Error code informing that Batch write operation failed during Interval write.
|
static int |
ERROR_BATCH_WRITE_MAJOR
Error code informing that Batch write operation failed during Major write.
|
static int |
ERROR_BATCH_WRITE_MINOR
Error code informing that Batch write operation failed during Minor write.
|
static int |
ERROR_BATCH_WRITE_NAME
Error code informing that Batch write operation failed during Name write
|
static int |
ERROR_BATCH_WRITE_NAMESPACE
Error code informing that Batch write operation failed during Namespace write
|
static int |
ERROR_BATCH_WRITE_PASSWORD
Error code informing that Batch write failed during Password write
|
static int |
ERROR_BATCH_WRITE_PROFILE
Error code informing that Batch write operation failed during Profile write
|
static int |
ERROR_BATCH_WRITE_PROXIMITY_UUID
Error code informing that Batch write operation failed during Proximity UUID write.
|
static int |
ERROR_BATCH_WRITE_TX_POWER
Error code informing that Batch write operation failed during Transmission Power write.
|
static int |
ERROR_BATCH_WRITE_URL
Error code informing that Batch write operation failed during Url write
|
static int |
ERROR_OVERWRITE_REQUEST
Error code informing that error has occured during characteristic
overwrite process.
|
static int |
ERROR_SERVICES_DISCOVERY
Error code informing that Beacon services discovery has failed.
|
static int |
FAILURE_UNKNOWN_BEACON
Failure code informing that BLE device was not recognised as kontakt.io
Beacon.
|
static int |
FAILURE_WRONG_PASSWORD
Failure code informing that beacon was not authenticated because of
wrong password.
|
Constructor and Description |
---|
DeviceConnectionError() |
Modifier and Type | Method and Description |
---|---|
static int |
getGattError(int errorCode)
Method for getting gatt error status code from received errorCode
throws IllegalAccessException if errorCode is not gatt error code |
static boolean |
isGattError(int errorCode)
Metohd for checking is error code indicating GATT error
|
public static final int ERROR_SERVICES_DISCOVERY
public static final int ERROR_OVERWRITE_REQUEST
public static final int ERROR_AUTHENTICATION
public static final int FAILURE_UNKNOWN_BEACON
public static final int FAILURE_WRONG_PASSWORD
public static final int ERROR_BATCH_WRITE_PROXIMITY_UUID
public static final int ERROR_BATCH_WRITE_TX_POWER
public static final int ERROR_BATCH_WRITE_MAJOR
public static final int ERROR_BATCH_WRITE_MINOR
public static final int ERROR_BATCH_WRITE_INTERVAL
public static final int ERROR_BATCH_WRITE_PROFILE
public static final int ERROR_BATCH_WRITE_NAMESPACE
public static final int ERROR_BATCH_WRITE_INSTANCE_ID
public static final int ERROR_BATCH_WRITE_URL
public static final int ERROR_BATCH_WRITE_NAME
public static final int ERROR_BATCH_WRITE_PASSWORD
public static boolean isGattError(int errorCode)
errorCode
- received from KontaktDeviceConnection.ConnectionListener.onErrorOccured(int)
public static int getGattError(int errorCode)
IllegalAccessException
if errorCode is not gatt error codeerrorCode
- error code