nl:: बुना::डिवाइस लेयर::अंदरूनी::सामान्य कॉन्फ़िगरेशन मैनेजर का आईडी

#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConfigurationManagerImpl.h>

यह ConfigurationManager सुविधा को सामान्य तरीके से लागू करता है, जो कई प्लैटफ़ॉर्म पर काम करती है.

खास जानकारी

इस टेंप्लेट में, ConfigurationManager ऐब्स्ट्रैक्ट इंटरफ़ेस की कुछ सुविधाओं को लागू किया जाता है, जो सभी प्लैटफ़ॉर्म पर इस्तेमाल के लिए सही हैं. इसे ConfigurationManagerImpl क्लास से इनहेरिट किए जाने (सीधे तौर पर या किसी दूसरे तरीके से) के लिए बनाया गया है, जो कि टेंप्लेट के रूप में भी दिखता है.

सुरक्षित प्रकार

@404 enum

सुरक्षित एट्रिब्यूट

mFlags
uint8_t

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

_ClearServiceProvisioningData()
_ComputeProvisioningHash(uint8_t *hashBuf, size_t hashBufSize)
_ConfigureWeaveStack()
_GetBLEDeviceIdentificationInfo(Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo)
_GetDeviceCertificate(uint8_t *buf, size_t bufSize, size_t & certLen)
_GetDeviceDescriptor(::nl::Weave::Profiles::DeviceDescription::WeaveDeviceDescriptor & deviceDesc)
_GetDeviceDescriptorTLV(uint8_t *buf, size_t bufSize, size_t & encodedLen)
_GetDeviceId(uint64_t & deviceId)
_GetDeviceIntermediateCACerts(uint8_t *buf, size_t bufSize, size_t & certsLen)
_GetDevicePrivateKey(uint8_t *buf, size_t bufSize, size_t & keyLen)
_GetFabricId(uint64_t & fabricId)
_GetFailSafeArmed(bool & val)
_GetFirmwareBuildTime(uint16_t & year, uint8_t & month, uint8_t & dayOfMonth, uint8_t & hour, uint8_t & minute, uint8_t & second)
_GetFirmwareRevision(char *buf, size_t bufSize, size_t & outLen)
_GetManufacturerDeviceCertificate(uint8_t *buf, size_t bufSize, size_t & certLen)
_GetManufacturerDeviceId(uint64_t & deviceId)
_GetManufacturerDeviceIntermediateCACerts(uint8_t *buf, size_t bufSize, size_t & certsLen)
_GetManufacturerDevicePrivateKey(uint8_t *buf, size_t bufSize, size_t & keyLen)
_GetManufacturingDate(uint16_t & year, uint8_t & month, uint8_t & dayOfMonth)
_GetPairedAccountId(char *buf, size_t bufSize, size_t & accountIdLen)
_GetPairingCode(char *buf, size_t bufSize, size_t & pairingCodeLen)
_GetPrimary802154MACAddress(uint8_t *buf)
_GetPrimaryWiFiMACAddress(uint8_t *buf)
_GetProductId(uint16_t & productId)
_GetProductRevision(uint16_t & productRev)
_GetQRCodeString(char *buf, size_t bufSize)
_GetSerialNumber(char *buf, size_t bufSize, size_t & serialNumLen)
_GetServiceConfig(uint8_t *buf, size_t bufSize, size_t & serviceConfigLen)
_GetServiceId(uint64_t & serviceId)
_GetVendorId(uint16_t & vendorId)
_GetWiFiAPSSID(char *buf, size_t bufSize)
_Init()
_IsFullyProvisioned()
bool
_IsMemberOfFabric()
bool
_IsPairedToAccount()
bool
_IsServiceProvisioned()
bool
_SetFailSafeArmed(bool val)
_StoreFabricId(uint64_t fabricId)
_StoreManufacturerDeviceCertificate(const uint8_t *cert, size_t certLen)
_StoreManufacturerDeviceId(uint64_t deviceId)
_StoreManufacturerDeviceIntermediateCACerts(const uint8_t *certs, size_t certsLen)
_StoreManufacturerDevicePrivateKey(const uint8_t *key, size_t keyLen)
_StoreManufacturingDate(const char *mfgDate, size_t mfgDateLen)
_StorePairedAccountId(const char *accountId, size_t accountIdLen)
_StorePairingCode(const char *pairingCode, size_t pairingCodeLen)
_StorePrimary802154MACAddress(const uint8_t *buf)
_StorePrimaryWiFiMACAddress(const uint8_t *buf)
_StoreProductRevision(uint16_t productRev)
_StoreSerialNumber(const char *serialNum, size_t serialNumLen)
_StoreServiceConfig(const uint8_t *serviceConfig, size_t serviceConfigLen)
_StoreServiceProvisioningData(uint64_t serviceId, const uint8_t *serviceConfig, size_t serviceConfigLen, const char *accountId, size_t accountIdLen)

सुरक्षित किए गए फ़ंक्शन

LogDeviceConfig()
void
PersistProvisioningData(ProvisioningDataSet & provData)

सुरक्षित प्रकार

@404

 @404

सुरक्षित एट्रिब्यूट

mFlags

uint8_t mFlags

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

_ClearService प्रावधान डेटा

WEAVE_ERROR _ClearServiceProvisioningData()

_Compute प्रावधान हैश

WEAVE_ERROR _ComputeProvisioningHash(
  uint8_t *hashBuf,
  size_t hashBufSize
)

_WeaveStack कॉन्फ़िगर करें

WEAVE_ERROR _ConfigureWeaveStack()

_GetBLEDeviceIdentizationInfo

WEAVE_ERROR _GetBLEDeviceIdentificationInfo(
  Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo
)

_GetDeviceCertificate में

WEAVE_ERROR _GetDeviceCertificate(
  uint8_t *buf,
  size_t bufSize,
  size_t & certLen
)

_GetDeviceDescriptor

WEAVE_ERROR _GetDeviceDescriptor(
  ::nl::Weave::Profiles::DeviceDescription::WeaveDeviceDescriptor & deviceDesc
)

_GetDeviceDescriptorTLV

WEAVE_ERROR _GetDeviceDescriptorTLV(
  uint8_t *buf,
  size_t bufSize,
  size_t & encodedLen
)

_GetDeviceId

WEAVE_ERROR _GetDeviceId(
  uint64_t & deviceId
)

_DeviceDeviceIntermediateCACerts पाएं

WEAVE_ERROR _GetDeviceIntermediateCACerts(
  uint8_t *buf,
  size_t bufSize,
  size_t & certsLen
)

_GetDevicePrivateKey

WEAVE_ERROR _GetDevicePrivateKey(
  uint8_t *buf,
  size_t bufSize,
  size_t & keyLen
)

_GetFabricId

WEAVE_ERROR _GetFabricId(
  uint64_t & fabricId
)

_GetFailSafeArmed

WEAVE_ERROR _GetFailSafeArmed(
  bool & val
)

_फ़र्मवेयर बिल्ड टाइम

WEAVE_ERROR _GetFirmwareBuildTime(
  uint16_t & year,
  uint8_t & month,
  uint8_t & dayOfMonth,
  uint8_t & hour,
  uint8_t & minute,
  uint8_t & second
)

_GetFirmwareRevision

WEAVE_ERROR _GetFirmwareRevision(
  char *buf,
  size_t bufSize,
  size_t & outLen
)

_GetManufacturerDeviceCertificate

WEAVE_ERROR _GetManufacturerDeviceCertificate(
  uint8_t *buf,
  size_t bufSize,
  size_t & certLen
)

_GetManufacturerDeviceId

WEAVE_ERROR _GetManufacturerDeviceId(
  uint64_t & deviceId
)

_GetManufacturerDeviceIntermediateCACerts

WEAVE_ERROR _GetManufacturerDeviceIntermediateCACerts(
  uint8_t *buf,
  size_t bufSize,
  size_t & certsLen
)

_GetManufacturerDevicePrivateKey

WEAVE_ERROR _GetManufacturerDevicePrivateKey(
  uint8_t *buf,
  size_t bufSize,
  size_t & keyLen
)

_GetManufacturingDate

WEAVE_ERROR _GetManufacturingDate(
  uint16_t & year,
  uint8_t & month,
  uint8_t & dayOfMonth
)

_GetGetedAccountId

WEAVE_ERROR _GetPairedAccountId(
  char *buf,
  size_t bufSize,
  size_t & accountIdLen
)

_Getपेयरिंग कोड

WEAVE_ERROR _GetPairingCode(
  char *buf,
  size_t bufSize,
  size_t & pairingCodeLen
)

_GetPrimary802154MACAddress

WEAVE_ERROR _GetPrimary802154MACAddress(
  uint8_t *buf
)

_प्राथमिक वाई-फ़ाईएमएक पता

WEAVE_ERROR _GetPrimaryWiFiMACAddress(
  uint8_t *buf
)

_GetProductId

WEAVE_ERROR _GetProductId(
  uint16_t & productId
)

_GetProductRevision

WEAVE_ERROR _GetProductRevision(
  uint16_t & productRev
)

_GetQRCodeString

WEAVE_ERROR _GetQRCodeString(
  char *buf,
  size_t bufSize
)

_GetSerialNumber

WEAVE_ERROR _GetSerialNumber(
  char *buf,
  size_t bufSize,
  size_t & serialNumLen
)

_GetServiceConfig

WEAVE_ERROR _GetServiceConfig(
  uint8_t *buf,
  size_t bufSize,
  size_t & serviceConfigLen
)

_GetServiceId

WEAVE_ERROR _GetServiceId(
  uint64_t & serviceId
)

_GetVendorId

WEAVE_ERROR _GetVendorId(
  uint16_t & vendorId
)

_GetWiFiAPSSID

WEAVE_ERROR _GetWiFiAPSSID(
  char *buf,
  size_t bufSize
)

_इनिट

WEAVE_ERROR _Init()

_isपूरा प्रावधान

bool _IsFullyProvisioned()

_IsMemberOfFabric

bool _IsMemberOfFabric()

_IsIsededToखाता

bool _IsPairedToAccount()

_IsService प्रावधान किया गया

bool _IsServiceProvisioned()

_SetFailSafeArmed

WEAVE_ERROR _SetFailSafeArmed(
  bool val
)

_स्टोरFabricId

WEAVE_ERROR _StoreFabricId(
  uint64_t fabricId
)

_StoreManufacturerDeviceप्रमाणपत्र

WEAVE_ERROR _StoreManufacturerDeviceCertificate(
  const uint8_t *cert,
  size_t certLen
)

_Storeनिर्माता डिवाइसआईडी

WEAVE_ERROR _StoreManufacturerDeviceId(
  uint64_t deviceId
)

_StoreManufacturerDeviceIntermediateCACerts

WEAVE_ERROR _StoreManufacturerDeviceIntermediateCACerts(
  const uint8_t *certs,
  size_t certsLen
)

_StoreManufacturerDevicePrivateKey

WEAVE_ERROR _StoreManufacturerDevicePrivateKey(
  const uint8_t *key,
  size_t keyLen
)

_Storeमैनफ़ैक्चरिंगतारीख

WEAVE_ERROR _StoreManufacturingDate(
  const char *mfgDate,
  size_t mfgDateLen
)

_Storeजोड़े गए खाते का आईडी

WEAVE_ERROR _StorePairedAccountId(
  const char *accountId,
  size_t accountIdLen
)

_स्टोर से जोड़ने का कोड

WEAVE_ERROR _StorePairingCode(
  const char *pairingCode,
  size_t pairingCodeLen
)

_Storeप्राइमरी802154MACपता

WEAVE_ERROR _StorePrimary802154MACAddress(
  const uint8_t *buf
)

_Storeप्राथमिक वाई-फ़ाईएमएक पता

WEAVE_ERROR _StorePrimaryWiFiMACAddress(
  const uint8_t *buf
)

_Storeप्रॉडक्ट में बदलाव

WEAVE_ERROR _StoreProductRevision(
  uint16_t productRev
)

_Store सीरियल नंबर

WEAVE_ERROR _StoreSerialNumber(
  const char *serialNum,
  size_t serialNumLen
)

_Storeसेवा कॉन्फ़िगरेशन

WEAVE_ERROR _StoreServiceConfig(
  const uint8_t *serviceConfig,
  size_t serviceConfigLen
)

_Storeसेवा प्रावधान डेटा

WEAVE_ERROR _StoreServiceProvisioningData(
  uint64_t serviceId,
  const uint8_t *serviceConfig,
  size_t serviceConfigLen,
  const char *accountId,
  size_t accountIdLen
)

सुरक्षित किए गए फ़ंक्शन

LogDeviceConfig

void LogDeviceConfig()

Persist प्रावधानingData

WEAVE_ERROR PersistProvisioningData(
  ProvisioningDataSet & provData
)