Google is committed to advancing racial equity for Black communities. See how.

WeaveStack

public final class WeaveStack erweitert Object

Konstante Zusammenfassung

int INITIAL_CONNECTIONS

Zusammenfassung der öffentlichen Methoden

synchronisiert int
BluetoothGattCallback
synchronisiert int
synchronisierter WeaveDeviceManager
getConnection (int connId)
statischer WeaveStack
statischer Boolescher Wert
onCloseConnection (int connId)
statisch int
onGetMTU (int connId)
Statische Leere
statischer Boolescher Wert
onSendCharacteristic (int connId, Byte [] svcId, Byte [] charId, Byte [] charakteristische Daten)
statischer Boolescher Wert
onSubscribeCharacteristic (int connId, byte [] svcId, byte [] charId)
statischer Boolescher Wert
onUnsubscribeCharacteristic (int connId, byte [] svcId, byte [] charId)
synchronisierter WeaveDeviceManager
removeConnection (int connId)

Zusammenfassung der vererbten Methode

Konstanten

public static final int INITIAL_CONNECTIONS

Konstanter Wert: 4

Öffentliche Methoden

public synchronized int addConnection ( WeaveDeviceManager connObj)

Parameter
connObj

public BluetoothGattCallback getCallback ()

public synchronized int getConnId ( BluetoothGatt gatt )

Parameter
gatt

public synchronized WeaveDeviceManager getConnection (int connId)

Parameter
connId

public static WeaveStack getInstance ()

public static boolean onCloseConnection (int connId)

Parameter
connId

public static int onGetMTU (int connId)

Parameter
connId

public static void onNotifyWeaveConnectionClosed (int connId)

Parameter
connId

public static boolean onSendCharacteristic (int connId, Byte [] svcId, Byte [] charId, Byte [] CharacteristicData)

Parameter
connId
svcId
charId
CharacteristicData

public static boolean onSubscribeCharacteristic (int connId, byte [] svcId, byte [] charId)

Parameter
connId
svcId
charId

public static boolean onUnsubscribeCharacteristic (int connId, byte [] svcId, byte [] charId)

Parameter
connId
svcId
charId

public synchronized WeaveDeviceManager removeConnection (int connId)

Parameter
connId