nl::वेव::DeviceManager::WeaveDeviceManager

खास जानकारी

इनहेरिटेंस

इससे इनहेरिट किया जाता है: nl::Weave::Profiles::Security::CASE::WeaveCASEAuthDelegate

कंस्ट्रक्टर और कंस्ट्रक्टर

WeaveDeviceManager()

सार्वजनिक प्रकार

@366 enum

सार्वजनिक विशेषताएं

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

AppState

void * AppState

डिवाइस की गिनती

DeviceEnumerationResponseFunct DeviceEnumeration

सामान्य

CompleteFunct General

GetCameraAuthData

GetCameraAuthDataCompleteFunct GetCameraAuthData

GetFabricConfig

GetFabricConfigCompleteFunct GetFabricConfig

नेटवर्क पाएं

GetNetworksCompleteFunct GetNetworks

GetRendezvousMode

GetRendezvousModeCompleteFunct GetRendezvousMode

वायरलेसनियमों को कॉन्फ़िगर करें

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
)

बनाएंफ़ैब्रिक

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
)

ConnectConnection Monitor

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
)

GetDeviceपता

WEAVE_ERROR GetDeviceAddress(
  IPAddress & deviceAddr
)

GetDeviceId

WEAVE_ERROR GetDeviceId(
  uint64_t & deviceId
)

GetFabricConfig

WEAVE_ERROR GetFabricConfig(
  void *appReqState,
  GetFabricConfigCompleteFunct onComplete,
  ErrorFunct onError
)

आखिरी नेटवर्क का प्रावधान प्रावधान का नतीजा

WEAVE_ERROR GetLastNetworkProvisioningResult(
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

नेटवर्क पाएं

WEAVE_ERROR GetNetworks(
  uint8_t flags,
  void *appReqState,
  GetNetworksCompleteFunct onComplete,
  ErrorFunct onError
)

GetRendezvousMode

WEAVE_ERROR GetRendezvousMode(
  void *appReqState,
  GetRendezvousModeCompleteFunct onComplete,
  ErrorFunct onError
)

वायरलेसनियमों को कॉन्फ़िगर करें

WEAVE_ERROR GetWirelessRegulatoryConfig(
  void *appReqState,
  GetWirelessRegulatoryConfigCompleteFunct onComplete,
  ErrorFunct onError
)

डिवाइस की पहचान करें

WEAVE_ERROR IdentifyDevice(
  void *appReqState,
  IdentifyDeviceCompleteFunct onComplete,
  ErrorFunct onError
)

इनिट

WEAVE_ERROR Init(
  WeaveExchangeManager *exchangeMsg,
  WeaveSecurityManager *securityMgr
)

कनेक्ट किया गया

bool IsConnected() const 

मौजूदा फ़ेब्रिक में शामिल हों

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
)

PassiveRendezvousडिवाइस

WEAVE_ERROR PassiveRendezvousDevice(
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

PassiveRendezvousडिवाइस

WEAVE_ERROR PassiveRendezvousDevice(
  const char *pairingCode,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError,
  StartFunct onStart
)

PassiveRendezvousडिवाइस

WEAVE_ERROR PassiveRendezvousDevice(
  const uint8_t *accessToken,
  uint32_t accessTokenLen,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

पिंग

WEAVE_ERROR Ping(
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

पिंग

WEAVE_ERROR Ping(
  void *appReqState,
  int32_t payloadSize,
  CompleteFunct onComplete,
  ErrorFunct onError
)

डिवाइस को फिर से कनेक्ट करें

WEAVE_ERROR ReconnectDevice(
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

रजिस्टर सर्विसपेयर खाता

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
)

RemotePassiveRendezvous

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
)

RemotePassiveRendezvous

WEAVE_ERROR RemotePassiveRendezvous(
  const IPAddress rendezvousDeviceAddr,
  const char *pairingCode,
  const uint16_t rendezvousTimeoutSec,
  const uint16_t inactivityTimeoutSec,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

RemotePassiveRendezvous

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
)

रेंडेवुस डिवाइस

WEAVE_ERROR RendezvousDevice(
  const IdentifyDeviceCriteria & deviceCriteria,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

रेंडेवुस डिवाइस

WEAVE_ERROR RendezvousDevice(
  const char *pairingCode,
  const IdentifyDeviceCriteria & deviceCriteria,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

रेंडेवुस डिवाइस

WEAVE_ERROR RendezvousDevice(
  const uint8_t *accessToken,
  uint32_t accessTokenLen,
  const IdentifyDeviceCriteria & deviceCriteria,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

रेंडेवुस डिवाइस

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
)

सेट कनेक्शन बंद करने का कॉलबैक

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
)

सेटRendezvousMode

WEAVE_ERROR SetRendezvousMode(
  uint16_t modeFlags,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

setUseAccessToken

WEAVE_ERROR SetUseAccessToken(
  bool useAccessToken
)

setWiFiRendezvousAddress

WEAVE_ERROR SetWiFiRendezvousAddress(
  IPAddress addr
)

वायरलेसनियमों का कॉन्फ़िगरेशन सेट करें

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
)

StartSystemTest

WEAVE_ERROR StartSystemTest(
  void *appReqState,
  uint32_t profileId,
  uint32_t testId,
  CompleteFunct onComplete,
  ErrorFunct onError
)

डिवाइस डिवाइस को रोकना

void StopDeviceEnumeration()

स्टॉप सिस्टम टेस्ट

WEAVE_ERROR StopSystemTest(
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

जांच नेटवर्क कनेक्टिविटी

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
)

अपडेट नेटवर्क

WEAVE_ERROR UpdateNetwork(
  const NetworkInfo *netInfo,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

अपडेट सेवा

WEAVE_ERROR UpdateService(
  uint64_t serviceId,
  const uint8_t *serviceConfig,
  uint16_t serviceConfigLen,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

WeaveDeviceManager

 WeaveDeviceManager()

सार्वजनिक स्थिर फ़ंक्शन

जोड़ेंNodeToList

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
)

Is मान्य-पेयरिंग कोड

bool IsValidPairingCode(
  const char *pairingCode
)