nl:: Weave:: DeviceManager:: WeaveDeviceManager
Tóm tắt
Tính kế thừa
Kế thừa từ: nl::Weave::Profiles::Security::CASE::WeaveCASEAuthDelegate
Hàm dựng và hàm phá hủy |
|
---|---|
WeaveDeviceManager()
|
Loại công khai |
|
---|---|
@366
|
enum |
Thuộc tính công khai |
|
---|---|
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
|
Hàm công khai |
|
---|---|
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)
|
Hàm tĩnh công khai |
|
---|---|
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
|
Loại công khai
@366
@366
Thuộc tính công khai
Thêm mạng
AddNetworkCompleteFunct AddNetwork
AppState
void * AppState
Bảng liệt kê thiết bị
DeviceEnumerationResponseFunct DeviceEnumeration
Chung
CompleteFunct General
GetCameraAuthData
GetCameraAuthDataCompleteFunct GetCameraAuthData
GetFabricConfig
GetFabricConfigCompleteFunct GetFabricConfig
GetNetworks
GetNetworksCompleteFunct GetNetworks
GetRendezvousMode
GetRendezvousModeCompleteFunct GetRendezvousMode
Nhận không quy định cấu hình
GetWirelessRegulatoryConfigCompleteFunct GetWirelessRegulatoryConfig
Xác định thiết bị
IdentifyDeviceCompleteFunct IdentifyDevice
Mã thông báo ghép nối
PairTokenCompleteFunct PairToken
Quét mạng
NetworkScanCompleteFunct ScanNetworks
Tiểu bang
enum nl::Weave::DeviceManager::WeaveDeviceManager::@366 State
Hủy ghép nối
UnpairTokenCompleteFunct UnpairToken
Hàm công khai
Thêm mạng
WEAVE_ERROR AddNetwork( const NetworkInfo *netInfo, void *appReqState, AddNetworkCompleteFunct onComplete, ErrorFunct onError )
Nhánh tay
WEAVE_ERROR ArmFailSafe( uint8_t armMode, uint32_t failSafeToken, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Đóng
void Close()
Đóng
void Close( bool graceful )
Kết nối thiết bị đóng
void CloseDeviceConnection()
Kết nối thiết bị đóng
void CloseDeviceConnection( bool graceful )
Định cấu hình liên kết
WEAVE_ERROR ConfigureBinding( Binding *const apBinding )
Thiết bị kết nối
WEAVE_ERROR ConnectDevice( uint64_t deviceId, IPAddress deviceAddr, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Thiết bị kết nối
WEAVE_ERROR ConnectDevice( uint64_t deviceId, IPAddress deviceAddr, const char *pairingCode, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Thiết bị kết nối
WEAVE_ERROR ConnectDevice( uint64_t deviceId, IPAddress deviceAddr, const uint8_t *accessToken, uint32_t accessTokenLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Tiêu chí tạo
WEAVE_ERROR CreateFabric( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Tắt kết nối màn hình
WEAVE_ERROR DisableConnectionMonitor( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Tắt mạng
WEAVE_ERROR DisableNetwork( uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Tắt chuông báo động an toàn
WEAVE_ERROR DisarmFailSafe( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Bật kết nối kết nối
WEAVE_ERROR EnableConnectionMonitor( uint16_t interval, uint16_t timeout, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Bật mạng
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 )
GetLastNetworkCung cấp kết quả
WEAVE_ERROR GetLastNetworkProvisioningResult( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
GetNetworks
WEAVE_ERROR GetNetworks( uint8_t flags, void *appReqState, GetNetworksCompleteFunct onComplete, ErrorFunct onError )
GetRendezvousMode
WEAVE_ERROR GetRendezvousMode( void *appReqState, GetRendezvousModeCompleteFunct onComplete, ErrorFunct onError )
Nhận không quy định cấu hình
WEAVE_ERROR GetWirelessRegulatoryConfig( void *appReqState, GetWirelessRegulatoryConfigCompleteFunct onComplete, ErrorFunct onError )
Xác định thiết bị
WEAVE_ERROR IdentifyDevice( void *appReqState, IdentifyDeviceCompleteFunct onComplete, ErrorFunct onError )
Số nguyên
WEAVE_ERROR Init( WeaveExchangeManager *exchangeMsg, WeaveSecurityManager *securityMgr )
Đã kết nối
bool IsConnected() const
Tham giaFabric
WEAVE_ERROR JoinExistingFabric( const uint8_t *fabricConfig, uint32_t fabricConfigLen, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Tiêu chí thoát ly
WEAVE_ERROR LeaveFabric( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Mã thông báo ghép nối
WEAVE_ERROR PairToken( const uint8_t *pairingToken, uint32_t pairingTokenLen, void *appReqState, PairTokenCompleteFunct onComplete, ErrorFunct onError )
Thiết bị thụ động
WEAVE_ERROR PassiveRendezvousDevice( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Thiết bị thụ động
WEAVE_ERROR PassiveRendezvousDevice( const char *pairingCode, void *appReqState, CompleteFunct onComplete, ErrorFunct onError, StartFunct onStart )
Thiết bị thụ động
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 )
Kết nối lại thiết bị
WEAVE_ERROR ReconnectDevice( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Tài khoản đăng ký ghép nối dịch vụ
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 )
Truyền tải từ xa
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 )
Truyền tải từ xa
WEAVE_ERROR RemotePassiveRendezvous( const IPAddress rendezvousDeviceAddr, const char *pairingCode, const uint16_t rendezvousTimeoutSec, const uint16_t inactivityTimeoutSec, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Truyền tải từ xa
WEAVE_ERROR RemotePassiveRendezvous( const IPAddress rendezvousDeviceAddr, const uint16_t rendezvousTimeoutSec, const uint16_t inactivityTimeoutSec, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Xóa mạng
WEAVE_ERROR RemoveNetwork( uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Thiết bị Rendezvous
WEAVE_ERROR RendezvousDevice( const IdentifyDeviceCriteria & deviceCriteria, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Thiết bị Rendezvous
WEAVE_ERROR RendezvousDevice( const char *pairingCode, const IdentifyDeviceCriteria & deviceCriteria, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Thiết bị Rendezvous
WEAVE_ERROR RendezvousDevice( const uint8_t *accessToken, uint32_t accessTokenLen, const IdentifyDeviceCriteria & deviceCriteria, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Thiết bị Rendezvous
WEAVE_ERROR RendezvousDevice( const char *pairingCode, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Đặt lại cấu hình
WEAVE_ERROR ResetConfig( uint16_t resetFlags, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Quét mạng
WEAVE_ERROR ScanNetworks( NetworkType networkType, void *appReqState, NetworkScanCompleteFunct onComplete, ErrorFunct onError )
Đặt tự động kết nối lại
WEAVE_ERROR SetAutoReconnect( bool autoReconnect )
Đặt Thời gian chờ của Connect
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 )
Đặt địa chỉ sử dụng
WEAVE_ERROR SetUseAccessToken( bool useAccessToken )
SetWiFiRendezvousAddress
WEAVE_ERROR SetWiFiRendezvousAddress( IPAddress addr )
Đặt cấu hình không dây
WEAVE_ERROR SetWirelessRegulatoryConfig( const WirelessRegConfig *regConfig, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Tắt
WEAVE_ERROR Shutdown()
Khởi động thiết bị
WEAVE_ERROR StartDeviceEnumeration( void *appReqState, const IdentifyDeviceCriteria & deviceCriteria, DeviceEnumerationResponseFunct onResponse, ErrorFunct onError )
StartSystemTest
WEAVE_ERROR StartSystemTest( void *appReqState, uint32_t profileId, uint32_t testId, CompleteFunct onComplete, ErrorFunct onError )
Dừng số thiết bị
void StopDeviceEnumeration()
Kiểm tra hệ thống
WEAVE_ERROR StopSystemTest( void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Kết nối mạng thử nghiệm
WEAVE_ERROR TestNetworkConnectivity( uint32_t networkId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Hủy ghép nối
WEAVE_ERROR UnpairToken( void *appReqState, UnpairTokenCompleteFunct onComplete, ErrorFunct onError )
Hủy đăng ký dịch vụ
WEAVE_ERROR UnregisterService( uint64_t serviceId, void *appReqState, CompleteFunct onComplete, ErrorFunct onError )
Cập nhật mạng
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 )
Trình quản lý thiết bị Weave
WeaveDeviceManager()
Hàm tĩnh công khai
ThêmNútToList
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 )
Mã ghép nối hợp lệ
bool IsValidPairingCode( const char *pairingCode )