public class StudyWatch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BLE_DISABLED |
static int |
BLE_NOT_SUPPORTED |
static int |
BLUETOOTH_SCAN_PERMISSION_NOT_GRANTED |
static int |
LOCATION_PERMISSION_NOT_GRANTED |
static int |
STATE_CHARACTERISTIC_FAIL |
static int |
STATE_DISCONNECTED |
static int |
STATE_GATT_FAIL |
Constructor and Description |
---|
StudyWatch() |
Modifier and Type | Method and Description |
---|---|
static void |
connectBLE(java.lang.String macAddress,
Context context,
int mtu,
boolean debug,
StudyWatchCallback callback)
Connect to BLE and returns study watch sdk instance in callback
|
static void |
connectBLE(java.lang.String macAddress,
Context context,
StudyWatchCallback callback)
Connect to BLE and returns study watch sdk instance in callback,
default MTU = 244, debug = True
|
public static final int BLE_DISABLED
public static final int STATE_GATT_FAIL
public static final int BLE_NOT_SUPPORTED
public static final int STATE_DISCONNECTED
public static final int STATE_CHARACTERISTIC_FAIL
public static final int LOCATION_PERMISSION_NOT_GRANTED
public static final int BLUETOOTH_SCAN_PERMISSION_NOT_GRANTED
public static void connectBLE(java.lang.String macAddress, Context context, StudyWatchCallback callback)
macAddress
- MAC Address of the study watch.context
- Application context.callback
- study watch Callback.public static void connectBLE(java.lang.String macAddress, Context context, int mtu, boolean debug, StudyWatchCallback callback)
macAddress
- MAC Address of the study watch.context
- Application context.mtu
- MTU for BLE connection.debug
- debug log messages.callback
- study watch Callback.