Send feedback
Stay organized with collections
Save and categorize content based on your preferences.
nl:: Weave:: Profiles:: DeviceDescription
This namespace includes all interfaces within Weave for the Weave Device Description profile.
Summary
Enumerations
@177
enum
@178
enumMessage Types for the Device Description Profile.
@179 { kTag_WeaveDeviceDescriptor = 1, kTag_VendorId = 0, kTag_ProductId = 1, kTag_ProductRevision = 2, kTag_ManufacturingDate = 3, kTag_SerialNumber = 4, kTag_Primary802154MACAddress = 5, kTag_PrimaryWiFiMACAddress = 6, kTag_RendezvousWiFiESSID = 7, kTag_PairingCode = 8, kTag_SoftwareVersion = 9, kTag_DeviceId = 10, kTag_FabricId = 11, kTag_PairingCompatibilityVersionMajor = 12, kTag_PairingCompatibilityVersionMinor = 13, kTag_RendezvousWiFiESSIDSuffix = 14, kTag_DeviceFeature_HomeAlarmLinkCapable = 100, kTag_DeviceFeature_LinePowered = 101 }
enumData Element Tags for the Device Description Profile.
TargetDeviceModes { kTargetDeviceMode_Any = 0x00000000, kTargetDeviceMode_UserSelectedMode = 0x00000001 }
enumBit field (32-bits max) identifying which devices should respond to a LocateRequest Message based on their current mode.
TargetFabricIds { kTargetFabricId_NotInFabric = kFabricIdNotSpecified, kTargetFabricId_AnyFabric = kReservedFabricIdStart, kTargetFabricId_Any = kMaxFabricId }
enumSpecial target fabric IDs.
Functions
MatchTargetFabricId (uint64_t fabricId, uint64_t targetFabricId)
NL_DLL_EXPORT bool
Compare two fabric IDs to determine if they match (considering wildcard values).
Enumerations
@178
@178
Message Types for the Device Description Profile.
@179
@179
Data Element Tags for the Device Description Profile.
Note: For Feature Tags, the absence of a specific tag indicates that the device does not support the associated feature.
Properties
kTag_DeviceFeature_HomeAlarmLinkCapable
[ boolean ] Indicates a Nest Protect that supports connection to a home alarm panel.
Feature Tag
kTag_DeviceFeature_LinePowered
[ boolean ] Indicates a device that requires line power.
Feature Tag
kTag_DeviceId
[ uint, 2^64 max ] Weave device ID.
Context-specific Tag
kTag_FabricId
[ uint, 2^64 max ] ID of Weave fabric to which the device belongs.
Context-specific Tag
kTag_ManufacturingDate
[ uint, range 1-65535 ] Calendar date of manufacture in encoded form.
Context-specific Tag
kTag_PairingCode
[ UTF-8 string, len 6-16 ] The pairing code for the device.
Context-specific Tag Note: IMPORTANT: For security reasons, the PairingCode field should never be sent over the network. It is present in a WeaveDeviceDescriptor structure so that is can encoded in a data label (e.g. QR-code) that is physically associated with the device.
kTag_PairingCompatibilityVersionMajor
[ uint, range 1-65535 ] Pairing software compatibility major version.
Context-specific Tag
kTag_PairingCompatibilityVersionMinor
[ uint, range 1-65535 ] Pairing software compatibility minor version.
Context-specific Tag
kTag_Primary802154MACAddress
[ byte string, len = 8 ] MAC address for device's primary 802.15.4 interface.
Context-specific Tag
kTag_PrimaryWiFiMACAddress
[ byte string, len = 6 ] MAC address for device's primary WiFi interface.
Context-specific Tag
kTag_ProductId
[ uint, range 1-65535 ] Code identifying product.
Context-specific Tag
kTag_ProductRevision
[ uint, range 1-65535 ] Code identifying product revision.
Context-specific Tag
kTag_RendezvousWiFiESSID
[ UTF-8 string, len 1-32 ] ESSID for device's WiFi rendezvous network.
Context-specific Tag. Note: : This tag is mutually exclusive with the RendezvousWiFiESSIDSuffix tag.
kTag_RendezvousWiFiESSIDSuffix
[ UTF-8 string, len 1-32 ] ESSID suffix for device's WiFi rendezvous network.
Context-specific Tag. Note: : This tag is mutually exclusive with the RendezvousWiFiESSID tag.
kTag_SerialNumber
[ UTF-8 string, len 1-32 ] Device serial number.
Context-specific Tag
kTag_SoftwareVersion
[ UTF-8 string, len 1-32 ] Version of software on the device.
Context-specific Tag
kTag_VendorId
[ uint, range 1-65535 ] Code identifying product vendor.
Context-specific Tag
kTag_WeaveDeviceDescriptor
Structure containing information describing a Weave device.
Top-level Tag
TargetDeviceModes
TargetDeviceModes
Bit field (32-bits max) identifying which devices should respond to a LocateRequest Message based on their current mode.
Note that the modes defined here are intended to be general such that they can be applied to a variety of device types.
Properties
kTargetDeviceMode_Any
Locate all devices regardless of mode.
kTargetDeviceMode_UserSelectedMode
Locate all devices in 'user-selected' mode that is, where the device has been directly identified by a user by pressing a button (or equivalent).
TargetFabricIds
TargetFabricIds
Special target fabric IDs.
Properties
kTargetFabricId_Any
Specifies that all devices should respond regardless of fabric membership.
kTargetFabricId_AnyFabric
Specifies that only devices that __are_ a member of a fabric should respond.
kTargetFabricId_NotInFabric
Specifies that only devices that are not a member of a fabric should respond.
Functions
MatchTargetFabricId
NL_DLL_EXPORT bool MatchTargetFabricId(
uint64_t fabricId,
uint64_t targetFabricId
)
Compare two fabric IDs to determine if they match (considering wildcard values).
Details
Parameters
[in] fabricId
The fabric ID to test.
[in] targetFabricId
The fabric ID to test against.
Return Values
TRUE
If the fabric ids match.
FALSE
If the fabric ids do not match.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. The OPENTHREAD and related marks are trademarks of the Thread Group and are used under license.
Last updated 2020-08-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-08-28 UTC."],[],[]]