public final class WeaveStack extends Object
Resumen de constantes
int | INITIAL_CONNECTIONS |
Resumen de métodos públicos
int sincronizado |
addConnection(WeaveDeviceManager
connObj)
|
BluetoothGattCallback | |
int sincronizado |
getConnId(BluetoothGatt
gatt)
|
WeaveDeviceManager sincronizado |
getConnection(int connId)
|
WeaveStack estático | |
booleano estático |
onCloseConnection(int connId)
|
static int |
onGetMTU(int
connId)
|
static void |
onNotifyWeaveConnectionClosed(int connId)
|
booleano estático |
onSendCharacteristic(int connId, byte[] svcId, byte[] charId, byte[]
characteristicData)
|
booleano estático |
onSubscribeCharacteristic(int connId, byte[] svcId, byte[] charId)
|
booleano estático |
onUnsubscribeCharacteristic(int connId, byte[] svcId, byte[] charId)
|
WeaveDeviceManager sincronizado |
removeConnection(int connId)
|
Resumen de métodos heredados
Constantes
public static final int INITIAL_CONNECTIONS
Valor de la constante: 4
Métodos públicos
public synchronized int addConnection (WeaveDeviceManager connObj)
Parámetros
connObj |
---|
public BluetoothGattCallback getCallback ()
public synchronized int getConnId (BluetoothGatt gatt)
Parámetros
gatt |
---|
public synchronized WeaveDeviceManager getConnection (int connId)
Parámetros
connId |
---|
public static WeaveStack getInstance ()
public static boolean onCloseConnection (int connId)
Parámetros
connId |
---|
public static int onGetMTU (int connId)
Parámetros
connId |
---|
public static void onNotifyWeaveConnectionClosed (int connId)
Parámetros
connId |
---|
public static boolean onSendCharacteristic (int connId, byte[] svcId, byte[] charId, byte[] characteristicData)
Parámetros
connId | |
---|---|
svcId | |
charId | |
characteristicData |
public static boolean onSubscribeCharacteristic (int connId, byte[] svcId, byte[] charId)
Parámetros
connId | |
---|---|
svcId | |
charId |
public static boolean onUnsubscribeCharacteristic (int connId, byte[] svcId, byte[] charId)
Parámetros
connId | |
---|---|
svcId | |
charId |
public synchronized WeaveDeviceManager removeConnection (int connId)
Parámetros
connId |
---|