nl:: Weave:: DeviceManager:: WeaveDeviceManager
摘要
继承
继承自: nl::Weave::Profiles::Security::CASE::WeaveCASEAuthDelegate
构造函数和构造函数 |
|
---|---|
WeaveDeviceManager()
|
公共类型 |
|
---|---|
@366
|
枚举 |
公共属性 |
|
---|---|
AddNetwork
|
AddNetworkCompleteFunct
|
AppState
|
void *
|
DeviceEnumeration
|
DeviceEnumerationResponseFunct
|
General
|
CompleteFunct
|
GetCameraAuthData
|
GetCameraAuthDataCompleteFunct
|
GetFabricConfig
|
GetFabricConfigCompleteFunct
|
GetNetworks
|
GetNetworksCompleteFunct
|
GetRendezvousMode
|
GetRendezvousModeCompleteFunct
|
GetWirelessRegulatoryConfig
|
GetWirelessRegulatoryConfigCompleteFunct
|
IdentifyDevice
|
IdentifyDeviceCompleteFunct
|
PairToken
|
PairTokenCompleteFunct
|
ScanNetworks
|
NetworkScanCompleteFunct
|
State
|
enum nl::Weave::DeviceManager::WeaveDeviceManager::@366
|
UnpairToken
|
UnpairTokenCompleteFunct
|
公共函数 |
|
---|---|
AddNetwork(const NetworkInfo *netInfo, void *appReqState, AddNetworkCompleteFunct onComplete, ErrorFunct onError)
|
|
ArmFailSafe(uint8_t armMode, uint32_t failSafeToken, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
Close()
|
void
|
Close(bool graceful)
|
void
|
CloseDeviceConnection()
|
void
|
CloseDeviceConnection(bool graceful)
|
void
|
ConfigureBinding(Binding *const apBinding)
|
|
ConnectDevice(uint64_t deviceId, IPAddress deviceAddr, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
ConnectDevice(uint64_t deviceId, IPAddress deviceAddr, const char *pairingCode, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
ConnectDevice(uint64_t deviceId, IPAddress deviceAddr, const uint8_t *accessToken, uint32_t accessTokenLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
CreateFabric(void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
DisableConnectionMonitor(void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
DisableNetwork(uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
DisarmFailSafe(void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
EnableConnectionMonitor(uint16_t interval, uint16_t timeout, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
EnableNetwork(uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
GetCameraAuthData(const char *nonce, void *appReqState, GetCameraAuthDataCompleteFunct onComplete, ErrorFunct onError)
|
|
GetDeviceAddress(IPAddress & deviceAddr)
|
|
GetDeviceId(uint64_t & deviceId)
|
|
GetFabricConfig(void *appReqState, GetFabricConfigCompleteFunct onComplete, ErrorFunct onError)
|
|
GetLastNetworkProvisioningResult(void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
GetNetworks(uint8_t flags, void *appReqState, GetNetworksCompleteFunct onComplete, ErrorFunct onError)
|
|
GetRendezvousMode(void *appReqState, GetRendezvousModeCompleteFunct onComplete, ErrorFunct onError)
|
|
GetWirelessRegulatoryConfig(void *appReqState, GetWirelessRegulatoryConfigCompleteFunct onComplete, ErrorFunct onError)
|
|
IdentifyDevice(void *appReqState, IdentifyDeviceCompleteFunct onComplete, ErrorFunct onError)
|
|
Init(WeaveExchangeManager *exchangeMsg, WeaveSecurityManager *securityMgr)
|
|
IsConnected() const
|
bool
|
JoinExistingFabric(const uint8_t *fabricConfig, uint32_t fabricConfigLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
LeaveFabric(void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
PairToken(const uint8_t *pairingToken, uint32_t pairingTokenLen, void *appReqState, PairTokenCompleteFunct onComplete, ErrorFunct onError)
|
|
PassiveRendezvousDevice(void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
PassiveRendezvousDevice(const char *pairingCode, void *appReqState, CompleteFunct onComplete, ErrorFunct onError, StartFunct onStart)
|
|
PassiveRendezvousDevice(const uint8_t *accessToken, uint32_t accessTokenLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
Ping(void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
Ping(void *appReqState, int32_t payloadSize, CompleteFunct onComplete, ErrorFunct onError)
|
|
ReconnectDevice(void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
RegisterServicePairAccount(uint64_t serviceId, const char *accountId, const uint8_t *serviceConfig, uint16_t serviceConfigLen, const uint8_t *pairingToken, uint16_t pairingTokenLen, const uint8_t *pairingInitData, uint16_t pairingInitDataLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
RemotePassiveRendezvous(const IPAddress rendezvousDeviceAddr, const uint8_t *accessToken, uint32_t accessTokenLen, const uint16_t rendezvousTimeoutSec, const uint16_t inactivityTimeoutSec, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
RemotePassiveRendezvous(const IPAddress rendezvousDeviceAddr, const char *pairingCode, const uint16_t rendezvousTimeoutSec, const uint16_t inactivityTimeoutSec, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
RemotePassiveRendezvous(const IPAddress rendezvousDeviceAddr, const uint16_t rendezvousTimeoutSec, const uint16_t inactivityTimeoutSec, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
RemoveNetwork(uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
RendezvousDevice(const IdentifyDeviceCriteria & deviceCriteria, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
RendezvousDevice(const char *pairingCode, const IdentifyDeviceCriteria & deviceCriteria, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
RendezvousDevice(const uint8_t *accessToken, uint32_t accessTokenLen, const IdentifyDeviceCriteria & deviceCriteria, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
RendezvousDevice(const char *pairingCode, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
ResetConfig(uint16_t resetFlags, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
ScanNetworks(NetworkType networkType, void *appReqState, NetworkScanCompleteFunct onComplete, ErrorFunct onError)
|
|
SetAutoReconnect(bool autoReconnect)
|
|
SetConnectTimeout(uint32_t timeoutMS)
|
|
SetConnectionClosedCallback(ConnectionClosedFunc onConnecionClosedFunc, void *onConnecionClosedAppReq)
|
void
|
SetRendezvousAddress(IPAddress addr)
|
|
SetRendezvousAddress(IPAddress addr, InterfaceId rendezvousIntf)
|
|
SetRendezvousLinkLocal(bool RendezvousLinkLocal)
|
|
SetRendezvousMode(uint16_t modeFlags, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
SetUseAccessToken(bool useAccessToken)
|
|
SetWiFiRendezvousAddress(IPAddress addr)
|
|
SetWirelessRegulatoryConfig(const WirelessRegConfig *regConfig, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
Shutdown()
|
|
StartDeviceEnumeration(void *appReqState, const IdentifyDeviceCriteria & deviceCriteria, DeviceEnumerationResponseFunct onResponse, ErrorFunct onError)
|
|
StartSystemTest(void *appReqState, uint32_t profileId, uint32_t testId, CompleteFunct onComplete, ErrorFunct onError)
|
|
StopDeviceEnumeration()
|
void
|
StopSystemTest(void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
TestNetworkConnectivity(uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
UnpairToken(void *appReqState, UnpairTokenCompleteFunct onComplete, ErrorFunct onError)
|
|
UnregisterService(uint64_t serviceId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
UpdateNetwork(const NetworkInfo *netInfo, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
|
UpdateService(uint64_t serviceId, const uint8_t *serviceConfig, uint16_t serviceConfigLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError)
|
公共静态函数 |
|
---|---|
AddNodeToList(uint64_t nodeId, uint64_t *& list, uint32_t & listLen, uint32_t & listMaxLen, uint32_t initialMaxLen)
|
|
IsNodeInList(uint64_t nodeId, uint64_t *list, uint32_t listLen)
|
bool
|
IsValidPairingCode(const char *pairingCode)
|
bool
|
公共类型
@366
@366
公共属性
添加网络
AddNetworkCompleteFunct AddNetwork
应用状态
void * AppState
DeviceEnumeration
DeviceEnumerationResponseFunct DeviceEnumeration
常规
CompleteFunct General
GetCameraAuthData
GetCameraAuthDataCompleteFunct GetCameraAuthData
GetFabricConfig
GetFabricConfigCompleteFunct GetFabricConfig
GetNetworks
GetNetworksCompleteFunct GetNetworks
GetRendezvous 模式
GetRendezvousModeCompleteFunct GetRendezvousMode
GetWirelessRegulatoryConfig
GetWirelessRegulatoryConfigCompleteFunct GetWirelessRegulatoryConfig
识别设备
IdentifyDeviceCompleteFunct IdentifyDevice
成对
PairTokenCompleteFunct PairToken
扫描网络
NetworkScanCompleteFunct ScanNetworks
状态
enum nl::Weave::DeviceManager::WeaveDeviceManager::@366 State
取消配对令牌
UnpairTokenCompleteFunct UnpairToken
公共函数
添加网络
WEAVE_ERROR AddNetwork( const NetworkInfo *netInfo, void *appReqState, AddNetworkCompleteFunct onComplete, ErrorFunct onError )
开启自动失效
WEAVE_ERROR ArmFailSafe( uint8_t armMode, uint32_t failSafeToken, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
关闭
void Close()
关闭
void Close( bool graceful )
关闭设备连接
void CloseDeviceConnection()
关闭设备连接
void CloseDeviceConnection( bool graceful )
配置绑定
WEAVE_ERROR ConfigureBinding( Binding *const apBinding )
连接设备
WEAVE_ERROR ConnectDevice( uint64_t deviceId, IPAddress deviceAddr, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
连接设备
WEAVE_ERROR ConnectDevice( uint64_t deviceId, IPAddress deviceAddr, const char *pairingCode, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
连接设备
WEAVE_ERROR ConnectDevice( uint64_t deviceId, IPAddress deviceAddr, const uint8_t *accessToken, uint32_t accessTokenLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
创建 Fabric
WEAVE_ERROR CreateFabric( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
停用连接监控器
WEAVE_ERROR DisableConnectionMonitor( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
停用网络
WEAVE_ERROR DisableNetwork( uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
关闭警报失效
WEAVE_ERROR DisarmFailSafe( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
启用连接监视器
WEAVE_ERROR EnableConnectionMonitor( uint16_t interval, uint16_t timeout, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
启用网络
WEAVE_ERROR EnableNetwork( uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
GetCameraAuthData
WEAVE_ERROR GetCameraAuthData( const char *nonce, void *appReqState, GetCameraAuthDataCompleteFunct onComplete, ErrorFunct onError )
GetDeviceAddress
WEAVE_ERROR GetDeviceAddress( IPAddress & deviceAddr )
GetDeviceId
WEAVE_ERROR GetDeviceId( uint64_t & deviceId )
GetFabricConfig
WEAVE_ERROR GetFabricConfig( void *appReqState, GetFabricConfigCompleteFunct onComplete, ErrorFunct onError )
GetLastNetworkProvisioningResult
WEAVE_ERROR GetLastNetworkProvisioningResult( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
GetNetworks
WEAVE_ERROR GetNetworks( uint8_t flags, void *appReqState, GetNetworksCompleteFunct onComplete, ErrorFunct onError )
GetRendezvous 模式
WEAVE_ERROR GetRendezvousMode( void *appReqState, GetRendezvousModeCompleteFunct onComplete, ErrorFunct onError )
GetWirelessRegulatoryConfig
WEAVE_ERROR GetWirelessRegulatoryConfig( void *appReqState, GetWirelessRegulatoryConfigCompleteFunct onComplete, ErrorFunct onError )
识别设备
WEAVE_ERROR IdentifyDevice( void *appReqState, IdentifyDeviceCompleteFunct onComplete, ErrorFunct onError )
Init
WEAVE_ERROR Init( WeaveExchangeManager *exchangeMsg, WeaveSecurityManager *securityMgr )
已连接
bool IsConnected() const
加入现有的 Fabric
WEAVE_ERROR JoinExistingFabric( const uint8_t *fabricConfig, uint32_t fabricConfigLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
退出面料
WEAVE_ERROR LeaveFabric( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
成对
WEAVE_ERROR PairToken( const uint8_t *pairingToken, uint32_t pairingTokenLen, void *appReqState, PairTokenCompleteFunct onComplete, ErrorFunct onError )
被动 RendezvousDevice
WEAVE_ERROR PassiveRendezvousDevice( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
被动 RendezvousDevice
WEAVE_ERROR PassiveRendezvousDevice( const char *pairingCode, void *appReqState, CompleteFunct onComplete, ErrorFunct onError, StartFunct onStart )
被动 RendezvousDevice
WEAVE_ERROR PassiveRendezvousDevice( const uint8_t *accessToken, uint32_t accessTokenLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Ping
WEAVE_ERROR Ping( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Ping
WEAVE_ERROR Ping( void *appReqState, int32_t payloadSize, CompleteFunct onComplete, ErrorFunct onError )
重新连接设备
WEAVE_ERROR ReconnectDevice( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
RegisterServicePairAccount
WEAVE_ERROR RegisterServicePairAccount( uint64_t serviceId, const char *accountId, const uint8_t *serviceConfig, uint16_t serviceConfigLen, const uint8_t *pairingToken, uint16_t pairingTokenLen, const uint8_t *pairingInitData, uint16_t pairingInitDataLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
远程被动 Rendezvous
WEAVE_ERROR RemotePassiveRendezvous( const IPAddress rendezvousDeviceAddr, const uint8_t *accessToken, uint32_t accessTokenLen, const uint16_t rendezvousTimeoutSec, const uint16_t inactivityTimeoutSec, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
远程被动 Rendezvous
WEAVE_ERROR RemotePassiveRendezvous( const IPAddress rendezvousDeviceAddr, const char *pairingCode, const uint16_t rendezvousTimeoutSec, const uint16_t inactivityTimeoutSec, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
远程被动 Rendezvous
WEAVE_ERROR RemotePassiveRendezvous( const IPAddress rendezvousDeviceAddr, const uint16_t rendezvousTimeoutSec, const uint16_t inactivityTimeoutSec, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
移除网络
WEAVE_ERROR RemoveNetwork( uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Rendezvous 设备
WEAVE_ERROR RendezvousDevice( const IdentifyDeviceCriteria & deviceCriteria, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Rendezvous 设备
WEAVE_ERROR RendezvousDevice( const char *pairingCode, const IdentifyDeviceCriteria & deviceCriteria, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Rendezvous 设备
WEAVE_ERROR RendezvousDevice( const uint8_t *accessToken, uint32_t accessTokenLen, const IdentifyDeviceCriteria & deviceCriteria, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Rendezvous 设备
WEAVE_ERROR RendezvousDevice( const char *pairingCode, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
重置配置
WEAVE_ERROR ResetConfig( uint16_t resetFlags, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
扫描网络
WEAVE_ERROR ScanNetworks( NetworkType networkType, void *appReqState, NetworkScanCompleteFunct onComplete, ErrorFunct onError )
设置自动重新连接
WEAVE_ERROR SetAutoReconnect( bool autoReconnect )
SetConnectTimeout
WEAVE_ERROR SetConnectTimeout( uint32_t timeoutMS )
SetConnectionClosedCallback
void SetConnectionClosedCallback( ConnectionClosedFunc onConnecionClosedFunc, void *onConnecionClosedAppReq )
SetRendezvousAddress
WEAVE_ERROR SetRendezvousAddress( IPAddress addr )
SetRendezvousAddress
WEAVE_ERROR SetRendezvousAddress( IPAddress addr, InterfaceId rendezvousIntf )
SetRendezvousLinkLocal
WEAVE_ERROR SetRendezvousLinkLocal( bool RendezvousLinkLocal )
SetRendezvousMode
WEAVE_ERROR SetRendezvousMode( uint16_t modeFlags, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
使用访问令牌
WEAVE_ERROR SetUseAccessToken( bool useAccessToken )
SetWiFiRendezvousAddress
WEAVE_ERROR SetWiFiRendezvousAddress( IPAddress addr )
SetWirelessRegulatoryConfig
WEAVE_ERROR SetWirelessRegulatoryConfig( const WirelessRegConfig *regConfig, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
关机
WEAVE_ERROR Shutdown()
StartDeviceEnumeration
WEAVE_ERROR StartDeviceEnumeration( void *appReqState, const IdentifyDeviceCriteria & deviceCriteria, DeviceEnumerationResponseFunct onResponse, ErrorFunct onError )
起始系统测试
WEAVE_ERROR StartSystemTest( void *appReqState, uint32_t profileId, uint32_t testId, CompleteFunct onComplete, ErrorFunct onError )
StopDeviceEnumeration
void StopDeviceEnumeration()
停止系统测试
WEAVE_ERROR StopSystemTest( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
TestNetworkConnectivity
WEAVE_ERROR TestNetworkConnectivity( uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
取消配对令牌
WEAVE_ERROR UnpairToken( void *appReqState, UnpairTokenCompleteFunct onComplete, ErrorFunct onError )
取消注册服务
WEAVE_ERROR UnregisterService( uint64_t serviceId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
UpdateNetwork
WEAVE_ERROR UpdateNetwork( const NetworkInfo *netInfo, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
UpdateService
WEAVE_ERROR UpdateService( uint64_t serviceId, const uint8_t *serviceConfig, uint16_t serviceConfigLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
WeaveDeviceManager
WeaveDeviceManager()
公共静态函数
添加节点列表
WEAVE_ERROR AddNodeToList( uint64_t nodeId, uint64_t *& list, uint32_t & listLen, uint32_t & listMaxLen, uint32_t initialMaxLen )
IsNodeInList 类中的方法
bool IsNodeInList( uint64_t nodeId, uint64_t *list, uint32_t listLen )
IsValidPairingCode
bool IsValidPairingCode( const char *pairingCode )