public class DeviceConnectionError
extends java.lang.Object
KontaktDeviceConnection possible errors.| Modifier and Type | Field and Description | 
|---|---|
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. 
 | 
| 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 FAILURE_UNKNOWN_BEACON
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