公共类 WeaveDeviceManager 扩展对象
嵌套类摘要
接口 | WeaveDeviceManager.CompletionHandler |
字段摘要
受保护 WeaveDeviceManager.CompletionHandler | mCompHandler |
公共构造函数摘要
公共方法摘要
void |
beginAddNetwork(NetworkInfo netInfo)
|
void |
beginArmFailSafe(FailSafeArmMode
armMode, int failedSafeToken)
|
int |
beginArmFailSafe(FailSafeArmMode armMode)
|
void |
beginConnectBle(BluetoothGatt 服务器、布尔值 autoClose)
|
void |
beginConnectBle(BluetoothGatt 服务器、布尔值 autoClose、字符串配对代码)
|
void |
beginConnectBle(BluetoothGatt
server, boolean autoClose, byte[] accessToken)
|
void |
beginConnectDevice(长设备 ID、字符串 ipAddr、字节 [] accessToken)
|
void |
beginConnectDevice(长设备 ID、字符串 ipAddr、字符串配对代码)
|
void |
beginConnectDevice(长设备 ID、字符串 ipAddr)
|
void | |
void | |
void |
beginDisableNetwork(长网络 ID)
|
void | |
void |
beginEnableConnectionMonitor(整数间隔 MS,整数超时 MS)
|
void |
beginEnableNetwork(长网络 ID)
|
void |
beginGetCameraAuthData(字符串 Nonce)
|
void | |
void | |
void |
beginGetNetworks(GetNetworkFlags getFlags)
|
void | |
void | |
void |
beginJoinExistingFabric(byte[] fabricConfig)
|
void | |
void |
beginPairToken(byte[] PairToken)
|
void |
beginPing(int payloadSize)
|
void | |
void | |
void |
beginRegisterServicePairAccount(long serviceId, String accountId, byte[] serviceConfig, StringPairToken, StringPairInitData)
|
void |
beginRemotePassiveRendezvous(String rendezvousAddress, int
rendezvousTimeoutSec, int inactivityTimeoutSec)
|
void |
beginRemotePassiveRendezvous(byte[] accessToken, String
rendezvousAddress, int rendezvousTimeoutSec, int inactivityTimeoutSec)
|
void |
beginRemotePassiveRendezvous(字符串配对码、字符串 rendezvousAddress、int rendezvousTimeoutSec、int inactivityTimeoutSec)
|
void |
beginRemoveNetwork(长网络 ID)
|
void |
beginRendezvousDevice(标识设备标准
deviceCriteria)
|
void |
beginRendezvousDevice(字符串配对码、识别设备标准
deviceCriteria)
|
void |
beginRendezvousDevice(byte[] accessToken, RecognizeDeviceCriteria
deviceCriteria)
|
void |
beginResetConfig(ResetFlags resetResets)
|
void |
beginScanNetworks(NetworkType netType)
|
void |
beginSetRendezvousMode(EnumSet<RendezvousMode> modeSet)
|
void |
beginSetRendezvousMode(int modeFlags)
|
void |
beginStartSystemTest(较长的 profileId、long testId)
|
void | |
void |
beginTestNetworkConnectivity(长 networkId)
|
void | |
void |
beginUnregisterService(长 serviceId)
|
void |
beginUpdateNetwork(NetworkInfo netInfo)
|
void |
close()
|
静态无效 | |
WeaveDeviceDescriptor |
解码设备描述符(字节 [] encodedDeviceDesc)
|
字符串 | |
long |
deviceId()
|
蓝牙蓝牙 | |
BluetoothGattCallback 接口中的方法 | |
WeaveDeviceManager.CompletionHandler | |
布尔值 | |
静态布尔值 |
isValidPairingCode(字符串配对码)
|
void |
onAddNetworkComplete(long networkId)
|
void | |
void |
onCloseBleComplete(int connId)
|
void | |
void | |
void | |
void |
onDeviceEnumerationResponse(WeaveDeviceDescriptor deviceDesc, String deviceAddr)
|
void | |
void | |
void | |
void | |
void | |
void |
onError(抛出错误)
|
void |
onGetCameraAuthDataComplete(字符串 macAddress、String authData)
|
void |
onGetFabricConfigComplete(byte[] fabricConfig)
|
void | |
void | |
void |
onGetRendezvousModeComplete(EnumSet<RendezvousMode> rendezvousModes)
|
void |
onRecognizeDeviceComplete(WeaveDeviceDescriptor deviceDesc)
|
void | |
void | |
void |
onNotifyWeaveConnectionClosed(int connId)
|
void |
onPairTokenComplete(byte[] PairTokenBundle)
|
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void |
setAutoReconnect(布尔值 autoReconnect)
|
void |
setCompletionHandler(WeaveDeviceManager.CompletionHandler
compHandler)
|
void |
setConnectTimeout(int timeoutMS)
|
静态无效 |
setLoggingEnabled(已启用布尔值)
启用或停用日志记录输出
|
void |
setRendezvousAddress(String rendezvousAddr)
|
void |
setRendezvousLinkLocal(布尔值 rendezvousLinkLocal)
|
void |
startDeviceEnumeration(RecognizeDeviceCriteria
deviceCriteria)
|
void |
受保护的方法摘要
void |
finalize()
|
继承的方法摘要
字段
受保护的 WeaveDeviceManager.CompletionHandler mCompHandler
公共构造函数
public WeaveDeviceManager ()
公共方法
public void beginAddNetwork (NetworkInfo netInfo)
参数
网络信息 |
---|
public void beginArmFailSafe (FailSafeArmMode armMode, int failedSafeToken)
参数
armMode 模式 | |
---|---|
failSafeToken |
public int beginArmFailSafe (FailSafeArmMode armMode)
参数
armMode 模式 |
---|
public void beginConnectBle (BluetoothGatt 服务器,布尔值 autoClose)
参数
server | |
---|---|
自动关闭 |
public void beginConnectBle (BluetoothGatt server, boolean autoClose, StringPairCode)
参数
server | |
---|---|
自动关闭 | |
配对码 |
public void beginConnectBle (BluetoothGatt server, boolean autoClose, byte[] accessToken)
参数
server | |
---|---|
自动关闭 | |
访问令牌 |
public void beginConnectDevice (long deviceId, String ipAddr, byte[] accessToken)
参数
设备 ID | |
---|---|
IP 地址 | |
访问令牌 |
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 timeoutMS)
参数
分屏 | |
---|---|
timeoutMS |
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 beginRecognizeDevice ()
public void beginJoinExistingFabric (byte[] fabricConfig)
参数
fabricConfig |
---|
public void beginLeftFabric ()
public void beginPairToken (byte[] 配对令牌)
参数
配对令牌 |
---|
public void beginPing (int payloadSize)
参数
载荷大小 |
---|
public void beginPing ()
public void beginReconnectDevice ()
public void beginRegisterServicePairAccount (long serviceId, String accountId, byte[] serviceConfig, StringPairToken, String PairInitData)
参数
serviceId | |
---|---|
accountId | |
serviceConfig | |
配对令牌 | |
调用 InitData |
public void beginRemotePassiveRendezvous (String rendezvousAddress, int rendezvousTimeoutSec, int inactivityTimeoutSec)
参数
rendezvousAddress | |
---|---|
rendezvousTimeoutSec | |
inactivityTimeoutSec |
public void beginRemotePassiveRendezvous (byte[] accessToken, String rendezvousAddress, int rendezvousTimeoutSec, int inactivityTimeoutSec)
参数
访问令牌 | |
---|---|
rendezvousAddress | |
rendezvousTimeoutSec | |
inactivityTimeoutSec |
public void beginRemotePassiveRendezvous (String 对码, String rendezvousAddress, int rendezvousTimeoutSec, int inactivityTimeoutSec)
参数
配对码 | |
---|---|
rendezvousAddress | |
rendezvousTimeoutSec | |
inactivityTimeoutSec |
public void beginRemoveNetwork (long networkId)
参数
网络 ID |
---|
public void beginRendezvousDevice (RecognizeDeviceCriteria deviceCriteria)
参数
设备条件 |
---|
public void beginRendezvousDevice (String 对码, RecognizeDeviceCriteria deviceCriteria)
参数
配对码 | |
---|---|
设备条件 |
public void beginRendezvousDevice (byte[] accessToken, RecognizeDeviceCriteria deviceCriteria)
参数
访问令牌 | |
---|---|
设备条件 |
public void beginResetConfig (ResetFlags resetFlags)
参数
resetFlags |
---|
public void beginScanNetworks (NetworkType netType)
参数
网络类型 |
---|
public void beginSetRendezvousMode (EnumSet<RendezvousMode> modeSet)
参数
modeSet |
---|
public void beginSetRendezvousMode (int modeFlags)
参数
modeFlags |
---|
public void beginStartSystemTest (long profileId, long testId)
参数
profileId | |
---|---|
testId |
public void beginStopSystemTest ()
public void beginTestNetworkConnectivity (long networkId)
参数
网络 ID |
---|
public void beginUnpairToken ()
public void beginUnregisterService (long serviceId)
参数
serviceId |
---|
public void beginUpdateNetwork (NetworkInfo netInfo)
参数
网络信息 |
---|
public void close ()
public static void closeEndpoint ()
public WeaveDeviceDescriptor decodeDeviceDescriptor (byte[] encodedDeviceDesc)
参数
encodedDeviceDesc |
---|
公开字符串 deviceAddress ()
public long deviceId ()
public BluetoothGatt getBluetoothGatt ()
public BluetoothGattCallback getCallback ()
public WeaveDeviceManager.CompletionHandler getCompletionHandler ()
public boolean isConnected ()
public static boolean isValidPairingCode(字符串配对码)
参数
配对码 |
---|
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)
参数
设备说明 | |
---|---|
设备地址 |
public void onDisableConnectionMonitorComplete ()
public void onDisableNetworkComplete ()
public void onDisarmFailSafeComplete ()
public void onEnableConnectionMonitorComplete ()
public void onEnableNetworkComplete ()
public void onError (抛出 ERR)
参数
错误 |
---|
public void onGetCameraAuthDataComplete (String macAddress, String authData)
参数
MAC 地址 | |
---|---|
身份验证数据 |
public void onGetFabricConfigComplete (byte[] fabricConfig)
参数
fabricConfig |
---|
public void onGetLastNetworkProvisioningResultComplete ()
public void onGetNetworksComplete (NetworkInfo[] 网络)
参数
网络 |
---|
public void onGetRendezvousModeComplete (EnumSet<RendezvousMode> rendezvousModes)
参数
rendezvousMode |
---|
public void onRecognizeDeviceComplete (WeaveDeviceDescriptor deviceDesc)
参数
设备说明 |
---|
public void onJoinExistingFabricComplete ()
public void onStayFabricComplete ()
public void onNotifyWeaveConnectionClosed (int connId)
参数
connId |
---|
public void onPairTokenComplete (byte[] matchingTokenBundle)
参数
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[] 网络)
参数
网络 |
---|
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 autoReconnect)
参数
自动重新连接 |
---|
public void setCompletionHandler (WeaveDeviceManager.CompletionHandler compHandler)
参数
CompHandler |
---|
public void setConnectTimeout (int timeoutMS)
参数
timeoutMS |
---|
public static void setLoggingEnabled (boolean enabled)
启用或停用日志记录输出
参数
已启用 | 如果应输出日志,则为 true;如果没有输出,则为 false |
---|
public void setRendezvousAddress (String rendezvousAddr)
参数
RendezvousAddr |
---|
public void setRendezvousLinkLocal (boolean rendezvousLinkLocal)
参数
rendezvousLinkLocal |
---|
public void startDeviceEnumeration (RecognizeDeviceCriteria deviceCriteria)
参数
设备条件 |
---|
public void stopDeviceEnumeration ()
受保护的方法
protection void finalize ()
引发
Throwable |
---|