class WeaveDeviceDescriptor
Defined at line 115 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/device-description/DeviceDescription.h
Contains descriptive information about a Weave device.
Public Members
uint64_t DeviceId
uint64_t FabricId
uint32_t DeviceFeatures
uint16_t VendorId
uint16_t ProductId
uint16_t ProductRevision
ManufacturingDate
uint8_t[8] Primary802154MACAddress
uint8_t[6] PrimaryWiFiMACAddress
char[33] SerialNumber
char[33] SoftwareVersion
char[33] RendezvousWiFiESSID
char[17] PairingCode
uint16_t PairingCompatibilityVersionMajor
uint16_t PairingCompatibilityVersionMinor
uint8_t Flags
Public Methods
void WeaveDeviceDescriptor ()
void Clear ()
WEAVE_ERROR EncodeText (const WeaveDeviceDescriptor & desc, char * buf, uint32_t bufLen, uint32_t & outEncodedLen)
WEAVE_ERROR EncodeTLV (const WeaveDeviceDescriptor & desc, uint8_t * buf, uint32_t bufLen, uint32_t & outEncodedLen)
WEAVE_ERROR EncodeTLV (const WeaveDeviceDescriptor & desc, nl::Weave::TLV::TLVWriter & writer)
WEAVE_ERROR Decode (const uint8_t * data, uint32_t dataLen, WeaveDeviceDescriptor & outDesc)
WEAVE_ERROR DecodeText (const char * data, uint32_t dataLen, WeaveDeviceDescriptor & outDesc)
WEAVE_ERROR DecodeTLV (const uint8_t * data, uint32_t dataLen, WeaveDeviceDescriptor & outDesc)
WEAVE_ERROR DecodeTLV (nl::Weave::TLV::TLVReader & reader, WeaveDeviceDescriptor & outDesc)
bool IsZeroBytes (const uint8_t * buf, uint32_t len)
Enumerations
enum
| Name | Value |
|---|---|
| kMaxSerialNumberLength | 32 |
| kMaxPairingCodeLength | 16 |
| kMaxRendezvousWiFiESSID | 32 |
| kMaxSoftwareVersionLength | WEAVE_CONFIG_MAX_SOFTWARE_VERSION_LENGTH |
Defines the maximum length of some attributes.
Defined at line 123 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/device-description/DeviceDescription.h
enum
| Name | Value |
|---|---|
| kFeature_HomeAlarmLinkCapable | 0x00000001 |
| kFeature_LinePowered | 0x00000002 |
Feature flags indicating specific device capabilities.
Defined at line 134 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/device-description/DeviceDescription.h
enum
| Name | Value |
|---|---|
| kFlag_IsRendezvousWiFiESSIDSuffix | 0x01 |
Flags field definitions.
Defined at line 143 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/device-description/DeviceDescription.h
enum
| Name | Value |
|---|---|
| kMaxEncodedTLVLength | 8 /* Control + Profile Tag */ + 8 /* Length */ + (8 * 16) /* Control + Context Tag */ + sizeof(VendorId) + sizeof(ProductId) + sizeof(ProductRevision) + sizeof(ManufacturingDate) + sizeof(SerialNumber) + sizeof(Primary802154MACAddress) + sizeof(PrimaryWiFiMACAddress) + sizeof(RendezvousWiFiESSID) + sizeof(PairingCode) + sizeof(DeviceId) + sizeof(FabricId) + sizeof(SoftwareVersion) + sizeof(PairingCompatibilityVersionMajor) + sizeof(PairingCompatibilityVersionMinor) + 1 |
Defines TLV attribute lengths.
Defined at line 174 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/device-description/DeviceDescription.h