nl::Weave::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

สถานะแอป

void * AppState

การกําหนดอุปกรณ์

DeviceEnumerationResponseFunct DeviceEnumeration

ทั่วไป

CompleteFunct General

รับ GetAuthAuthData

GetCameraAuthDataCompleteFunct GetCameraAuthData

GetFabricConfig

GetFabricConfigCompleteFunct GetFabricConfig

เครือข่าย Get

GetNetworksCompleteFunct GetNetworks

โหมด GetRendezvous

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
)

ปลอดภัยจาก ArmFail

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
)

เปิดใช้การตรวจสอบการเชื่อมต่อ

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
)

รับ GetAuthAuthData

WEAVE_ERROR GetCameraAuthData(
  const char *nonce,
  void *appReqState,
  GetCameraAuthDataCompleteFunct onComplete,
  ErrorFunct onError
)

รับที่อยู่อุปกรณ์

WEAVE_ERROR GetDeviceAddress(
  IPAddress & deviceAddr
)

รับรหัสอุปกรณ์

WEAVE_ERROR GetDeviceId(
  uint64_t & deviceId
)

GetFabricConfig

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

ผลลัพธ์การจัดสรรล่าสุดของ Network

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

เครือข่าย Get

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

โหมด GetRendezvous

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
)

พวงมาลัยรีโมต

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
)

พวงมาลัยรีโมต

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

พวงมาลัยรีโมต

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
)

ตั้งค่าระยะหมดเวลา

WEAVE_ERROR SetConnectTimeout(
  uint32_t timeoutMS
)

ตั้งค่าการเรียกกลับแบบปิด

void SetConnectionClosedCallback(
  ConnectionClosedFunc onConnecionClosedFunc,
  void *onConnecionClosedAppReq
)

ที่อยู่ปลายทาง

WEAVE_ERROR SetRendezvousAddress(
  IPAddress addr
)

ที่อยู่ปลายทาง

WEAVE_ERROR SetRendezvousAddress(
  IPAddress addr,
  InterfaceId rendezvousIntf
)

SetRendezvousLinkLocal

WEAVE_ERROR SetRendezvousLinkLocal(
  bool RendezvousLinkLocal
)

โหมด SetRendezvous

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

ตั้งค่าโทเค็นเพื่อการเข้าถึง

WEAVE_ERROR SetUseAccessToken(
  bool useAccessToken
)

ตั้งค่า WiFiRendezvousAddress

WEAVE_ERROR SetWiFiRendezvousAddress(
  IPAddress addr
)

ตั้งข้อกําหนดแบบไร้สาย

WEAVE_ERROR SetWirelessRegulatoryConfig(
  const WirelessRegConfig *regConfig,
  void *appReqState,
  CompleteFunct onComplete,
  ErrorFunct onError
)

ปิดการทำงาน

WEAVE_ERROR Shutdown()

จํานวนเริ่มต้นอุปกรณ์

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
)

จํานวนครั้งที่หยุดอุปกรณ์

void StopDeviceEnumeration()

หยุด SystemTest

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
)

ผู้จัดการอุปกรณ์ Weave

 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
)

รหัสการจับคู่ถูกต้อง

bool IsValidPairingCode(
  const char *pairingCode
)