public final class WeaveStack extends Object
Constant Summary
int | INITIAL_CONNECTIONS |
Public Method Summary
synchronized int |
addConnection(WeaveDeviceManager
connObj)
|
BluetoothGattCallback | |
synchronized int |
getConnId(BluetoothGatt
gatt)
|
synchronized WeaveDeviceManager |
getConnection(int connId)
|
static WeaveStack | |
static boolean |
onCloseConnection(int connId)
|
static int |
onGetMTU(int
connId)
|
static void |
onNotifyWeaveConnectionClosed(int connId)
|
static boolean |
onSendCharacteristic(int connId, byte[] svcId, byte[] charId, byte[]
characteristicData)
|
static boolean |
onSubscribeCharacteristic(int connId, byte[] svcId, byte[] charId)
|
static boolean |
onUnsubscribeCharacteristic(int connId, byte[] svcId, byte[] charId)
|
synchronized WeaveDeviceManager |
removeConnection(int connId)
|
Inherited Method Summary
Constants
public static final int INITIAL_CONNECTIONS
Constant Value: 4
Public Methods
public synchronized int addConnection (WeaveDeviceManager connObj)
Parameters
connObj |
---|
public BluetoothGattCallback getCallback ()
public synchronized int getConnId (BluetoothGatt gatt)
Parameters
gatt |
---|
public synchronized WeaveDeviceManager getConnection (int connId)
Parameters
connId |
---|
public static WeaveStack getInstance ()
public static boolean onCloseConnection (int connId)
Parameters
connId |
---|
public static int onGetMTU (int connId)
Parameters
connId |
---|
public static void onNotifyWeaveConnectionClosed (int connId)
Parameters
connId |
---|
public static boolean onSendCharacteristic (int connId, byte[] svcId, byte[] charId, byte[] characteristicData)
Parameters
connId | |
---|---|
svcId | |
charId | |
characteristicData |
public static boolean onSubscribeCharacteristic (int connId, byte[] svcId, byte[] charId)
Parameters
connId | |
---|---|
svcId | |
charId |
public static boolean onUnsubscribeCharacteristic (int connId, byte[] svcId, byte[] charId)
Parameters
connId | |
---|---|
svcId | |
charId |
public synchronized WeaveDeviceManager removeConnection (int connId)
Parameters
connId |
---|