公開最終類別 WeaveStack 擴充物件
常數摘要
int | INITIAL_CONNECTIONS |
公用方法摘要
同步 Int |
addConnection(WeaveDeviceManager
connObj)
|
BluetoothGattCallback | |
同步 Int |
getConnId(BluetoothGatt gatt)
|
已同步處理的 WeaveDeviceManager |
getConnection(int connId)
|
靜態 WeaveStack | |
靜態布林值 |
onCloseConnection(int connId)
|
靜態 int |
onGetMTU(int connId)
|
靜態 void |
ononWeaveConnectionClosed (int connId)
|
靜態布林值 |
onSendCharacteristic(int connId, bytes[] svcId, bytes[] charId, bytes[]
charactersisticData)
|
靜態布林值 |
on onCharacterCharacteristic(int connId, bytes[] svcId, bytes[] charId)
|
靜態布林值 |
onunsubscribeCharacteristic(int connId, bytes[] svcId, bytes[] charId)
|
已同步處理的 WeaveDeviceManager |
RemoveConnection(int connId)
|
繼承方法摘要
常數
public static final int INITIAL_CONNECTIONS
常數值:4
公用方法
public sync int addConnection (WeaveDeviceManager connObj)
參數
ConnObj |
---|
public BluetoothGattCallback getCallback ()
public sync int getConnId (BluetoothGatt gatt)
參數
Gatt |
---|
公開同步 WeaveDeviceManager getConnection (int connId)
參數
ConnId |
---|
public static WeaveStack getInstance ()
public static ole onCloseConnection (int connId)
參數
ConnId |
---|
public static int onGetMTU (int connId)
參數
ConnId |
---|
public static void onNotifyWeaveConnectionClosed (int connId)
參數
ConnId |
---|
public static ole onSendCharacteristic (int connId, bytes[] svcId, bytes[] charId, bytes[] charactersisticData)
參數
ConnId | |
---|---|
SVG ID | |
字元 ID | |
特性資料 |
public static ole onsubscribeCharacteristic (int connId, bytes[] svcId, bytes[] charId)
參數
ConnId | |
---|---|
SVG ID | |
字元 ID |
public static ole onunsubscribeCharacteristic (int connId, bytes[] svcId, bytes[] charId)
參數
ConnId | |
---|---|
SVG ID | |
字元 ID |
公開同步 WeaveDeviceManager removeConnection (int connId)
參數
ConnId |
---|