public class GattError
extends java.lang.Object
Constructor and Description |
---|
GattError() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
parse(int error)
Converts the bluetooth communication status given by other BluetoothGattCallbacks to error name.
|
static java.lang.String |
parseConnectionError(int error)
Converts the connection status given by the
BluetoothGattCallback.onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int) to error name. |
public static java.lang.String parseConnectionError(int error)
BluetoothGattCallback.onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)
to error name.error
- the status numberpublic static java.lang.String parse(int error)
error
- the status number