WeaveDeviceManager

公開類別 WeaveDeviceManager 擴充物件

巢狀類別摘要

interface WeaveDeviceManager.CompleteHandler  

欄位摘要

受保護的 WeaveDeviceManager.CompleteHandler mCompHandler

公用建構函式摘要

公用方法摘要

void
void
startArmFailSafe(FailSafeArmMode ArmorMode、int failedSafeToken)
int
void
startStartBle(BluetoothGatt 伺服器,布林值 autoClose)
void
start startBle (BluetoothGatt 伺服器、布林值 autoClose、字串配對代碼)
void
startStartBle(BluetoothGatt server, boolean autoClose, bytes[] accessToken)
void
startConnectDevice(long deviceId, String ipAddr, bytes[] accessToken)
void
startConnectDevice(long deviceId, String ipAddr, String SMSCode)
void
startConnectDevice(long deviceId, String ipAddr)
void
void
void
startDisabledNetwork(詳細聯播網 ID)
void
void
startEnableConnectionMonitor(int IntervalMS、IntTimeoutMS)
void
startEnableNetwork(詳細聯播網 ID)
void
void
void
void
void
void
void
startjoinexistingFabric(bytes[] 確保配置)
void
void
startPairTokenToken (位元組 [] 配對憑證)
void
startPing (int payloadSize)
void
void
void
StartRegisterServicePairAccount(long serviceId, String accountId, bytes[] serviceConfig, StringPairToken, String SMSInitData)
void
start startPassiveRendezvous(字串 rendezvousAddress, int rendezvousTimeoutSec, int inactivityTimeoutSec)
void
start startPassiveRendezvous(bytes[] accessToken、String rendezvousAddress、int rendezvousTimeoutSec, int inactivityTimeoutSec)
void
startRemotePassiveRendezvous(字串配對代碼、字串 rendezvousAddress, int rendezvousTimeoutSec, int inactivityTimeoutSec)
void
startRemoveNetwork(詳細聯播網 ID)
void
void
startRendezvousDevice(字串配對代碼、IdentifiDeviceCondition 裝置標準)
void
startRendezvousDevice(bytes[] accessToken、IdentifiDeviceCriteriadeviceCriteria)
void
void
void
void
startSetRendezvousMode(int modeFlags)
void
startStartSystemTest(long profileId, long testId)
void
void
startTestNetworkConnectivity (長聯播網 ID)
void
void
startUnregisterService(long serviceId)
void
void
close()
靜態 void
WeaveDeviceDescriptor
decodeDeviceDescriptor(位元組 [] encodedDeviceDesc)
字串
long
BluetoothGatt
BluetoothGattCallback
WeaveDeviceManager.CompleteHandler
布林值
靜態布林值
isValidPairingCode(字串配對代碼)
void
onAddNetworkComplete(詳細聯播網 ID)
void
void
onCloseBleComplete(int connId)
void
void
void
void
onDeviceEnumerationResponse(WeaveDeviceDescriptor deviceDesc, String deviceAddr)
void
void
void
void
void
void
on onError(可切換錯誤)
void
on onCameraAuthDataComplete(字串 macAddress、字串 authData)
void
onGetFabricConfigComplete(位元組 [] 確保設定)
void
void
void
onGetRendezvousModeComplete (EnumSet<RendezvousMode> rendezvousModes)
void
void
void
void
void
on onTokenTokenComplete(位元組 [] 配對權杖組合)
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
setAutoReconnect(布林值 autoReconnect)
void
void
setConnectTimeout(int 逾時 MS)
靜態 void
setLoggingEnabled (已啟用布林值)
啟用或停用記錄輸出
void
setRendezvousAddress(字串 rendezvousAddr)
void
setRendezvousLinkLocal(boolean rendezvousLinkLocal)
void
void

保護方法摘要

void

繼承方法摘要

欄位

受保護的 WeaveDeviceManager.CompleteHandler mCompHandler

公用建構函式

public WeaveDeviceManager ()

公用方法

public void beginAddNetwork (NetworkInfo netInfo)

參數
網路資訊

public void beginArmFailSafe (FailSafeArmMode ArmorMode, int failedSafeToken)

參數
ArmorMode
failedSafeToken

public int beginArmFailSafe (FailSafeArmMode ArmorMode)

參數
ArmorMode

public void beginConnectBle (BluetoothGatt 伺服器,布林值 autoClose)

參數
server
自動關閉

public void beginConnectBle (BluetoothGatt 伺服器、布林值 autoClose、字串配對代碼)

參數
server
自動關閉
配對碼

public void beginConnectBle (BluetoothGatt 伺服器、布林值自動關閉、位元組 [] accessToken)

參數
server
自動關閉
accessToken

public void beginConnectDevice (long deviceId, String ipAddr, bytes[] accessToken)

參數
裝置 ID
IP 位址
accessToken

public void beginConnectDevice (long deviceId, String ipAddr, StringPairCode)

參數
裝置 ID
IP 位址
配對碼

public void beginConnectDevice (long deviceId, String ipAddr)

參數
裝置 ID
IP 位址

public void beginCreateFabric ()

public void beginDisableConnectionMonitor ()

public void beginDisableNetwork (long networkId)

參數
聯播網 ID

public void beginDisarmFailSafe ()

public void beginEnableConnectionMonitor (int IntervalMS, int 逾時 MS)

參數
間隔 MS
逾時 MS

public void beginEnableNetwork (long networkId)

參數
聯播網 ID

public void beginGetCameraAuthData (String nonce)

參數
Nonce

public void beginGetFabricConfig ()

public void beginGetLastNetworkProvisioningResult ()

public void beginGetNetworks (GetNetworkFlags getFlags)

參數
getFlags

public void beginGetRendezvousMode ()

public void beginIdentifiDevice ()

public

參數
MaterialConfig

public void beginleaveFabric ()

public void beginPairToken (bytes[] pairToken)

參數
配對憑證

public void beginPing (int payloadSize)

參數
酬載大小

public void beginPing ()

public void beginReconnectDevice ()

public

參數
服務 ID
帳戶編號
serviceConfig
配對憑證
配對配對資料

public void beginRemotePassiveRendezvous (String rendezvousAddress, int rendezvousTimeoutSec, int inactivityTimeoutSec)

參數
約會夫
rendezvousTimeoutSec
inactivityTimeoutSec

public void beginRemotePassiveRendezvous (bytes[] accessToken, String rendezvousAddress, int rendezvousTimeoutSec, int inactivityTimeoutSec)

參數
accessToken
約會夫
rendezvousTimeoutSec
inactivityTimeoutSec

public void beginRemotePassiveRendezvous (String PairCode, String rendezvousAddress, int rendezvousTimeoutSec, int inactivityTimeoutSec)

參數
配對碼
約會夫
rendezvousTimeoutSec
inactivityTimeoutSec

public void beginRemoveNetwork (long networkId)

參數
聯播網 ID

public void beginRendezvousDevice (IdentifiDeviceCriteria deviceCriteria)

參數
裝置條件

public

參數
配對碼
裝置條件

public void beginRendezvousDevice (bytes[] accessToken, IdentifiDeviceCriteria deviceCriteria)

參數
accessToken
裝置條件

public void beginresetConfig (resetFlags resetFlags)

參數
重設旗標

public void beginScanNetworks (NetworkType netType)

參數
網路類型

public void beginSetRendezvousMode (EnumSet<RendezvousMode> 模式設定)

參數
模式集

public void beginSetRendezvousMode (int modeFlags)

參數
modeFlags

public void beginStartSystemTest (long profileId, long testId)

參數
設定檔 ID
測試 ID

public void beginStopSystemTest ()

public void beginTestNetworkConnectivity (long networkId)

參數
聯播網 ID

public void beginUnpairToken ()

public void beginUnregisterService (long serviceId)

參數
服務 ID

public void beginUpdateNetwork (NetworkInfo netInfo)

參數
網路資訊

public void close ()

public static void close Endpoints ()

公開 WeaveDeviceDescriptor decodeDeviceDescriptor (bytes[] EncodingDeviceDesc)

參數
已編碼的裝置 Desc

public String deviceAddress ()

public long deviceId ()

公開 BluetoothGatt getBluetoothGatt ()

public BluetoothGattCallback getCallback ()

公開 WeaveDeviceManager.CompleteHandler getCompleteHandler ()

public ole isConnected ()

public static boolean isValidPairingCode (String PairCode)

參數
配對碼

public void onAddNetworkComplete (long networkId)

參數
聯播網 ID

public void onArmFailSafeComplete ()

public void onCloseBleComplete (int connId)

參數
ConnId

public void onConnectBleComplete ()

public void onConnectDeviceComplete ()

public void onCreateFabricComplete ()

public void onDeviceEnumerationResponse (WeaveDeviceDescriptor deviceDesc, String deviceAddr)

參數
裝置 D
裝置新增

public void onDisableConnectionMonitorComplete ()

public void onDisableNetworkComplete ()

public void onDisarmFailSafeComplete ()

public void onEnableConnectionMonitorComplete ()

public void onEnableNetworkComplete ()

public void onError (Throwable err)

參數
Err

public void onGetCameraAuthDataComplete (String macAddress, String authData)

參數
MAC 位址
驗證資料

public void onGetFabricConfigComplete (bytes[] PaintConfig)

參數
MaterialConfig

public void onGetLastNetworkProvisioningResultComplete ()

public void onGetNetworksComplete (NetworkInfo[] 網路)

參數
networks

public void onGetRendezvousModeComplete (EnumSet<RendezvousMode> rendezvousModes)

參數
RendezvousModes

public void onIdentifiDeviceComplete (WeaveDeviceDescriptor deviceDesc)

參數
裝置 D

public void onjoinexistingFabricComplete ()

public void onleaveFabricComplete ()

public void onNotifyWeaveConnectionClosed (int connId)

參數
ConnId

public void onPairTokenComplete (bytes[] pairTokenBundle)

參數
配對權杖組合

public void onPingComplete ()

public void onReconnectDeviceComplete ()

public void onRegisterServicePairAccountComplete ()

public void onRemotePassiveRendezvousComplete ()

public void onRemoveNetworkComplete ()

public void onRendezvousDeviceComplete ()

public void onresetConfigComplete ()

public void onScanNetworksComplete (NetworkInfo[] 個網路)

參數
networks

public void onSetRendezvousModeComplete ()

public void onStartSystemTestComplete ()

public void onStopSystemTestComplete ()

public void onTestNetworkConnectivityComplete ()

public void onUnpairTokenComplete ()

public void onUnregisterServiceComplete ()

public void onUpdateNetworkComplete ()

public void setAutoReconnect (boolean ReReconnect)

參數
自動重新連線

public void setCompleteHandler (WeaveDeviceManager.CompleteHandler compHandler)

參數
compHandler

public void setConnectTimeout (int 逾時 MS)

參數
逾時 MS

public static void setLoggingEnabled (已啟用布林值)

啟用或停用記錄輸出

參數
已啟用 如果應列印記錄,則為 true;沒有輸出內容為 False

public void setRendezvousAddress (String rendezvousAddr)

參數
RendezvousAddr

public void setRendezvousLinkLocal (boolean rendezvousLinkLocal)

參數
RendezvousLinkLocal

public void startDeviceEnumeration (IdentifiDeviceCriteria deviceCriteria)

參數
裝置條件

public void stopDeviceEnumeration ()

保護方法

protect void finalize ()

擲回
Throwable