Methods
debug
debug(flag, namespaces)Enables or disables debug logging.
Parameters
Name | Type | Description |
---|---|---|
flag
|
boolean
default:true
|
Set to true to enable logging |
namespaces
|
string
default:*
|
As specified by |
Example
const { debug } = require('zigbee-clusters');
// Enables debug logging in zigbee-clusters
debug(true);
Type Definitions
DiscoverAttributeExtendedResponse
DiscoverAttributeExtendedResponseType
- object
Properties
Name | Type | Description |
---|---|---|
id
|
number | Attribute id |
dataTypeId
|
number | ZCLDataType id |
acl
|
Array.<string> | Can hold values "readable"/"writable"/"reportable" |
DiscoverAttributeResponse
DiscoverAttributeResponseType
- object
Properties
Name | Type | Description |
---|---|---|
id
|
number | Attribute id |
dataTypeId
|
number | ZCLDataType id |
DiscoverAttributesExtendedResponse
DiscoverAttributesExtendedResponseType
- object
Properties
Name | Type | Description |
---|---|---|
lastResponse
|
boolean | |
attributes
|
Array.<DiscoverAttributeExtendedResponse> |
DiscoverAttributesResponse
DiscoverAttributesResponseType
- object
Properties
Name | Type | Description |
---|---|---|
lastResponse
|
boolean | |
attributes
|
Array.<DiscoverAttributeResponse> |
ReadReportingConfiguration
ReadReportingConfigurationType
- object
Properties
Name | Type | Description |
---|---|---|
status
|
ZCLDataTypes.enum8Status | |
direction
|
'reported' | 'received' | |
attributeId
|
number | |
attributeDataType
|
ZCLDataType.id <optional> | |
minInterval
|
number <optional> | |
maxInterval
|
number <optional> | |
minChange
|
number <optional> | |
timeoutPeriod
|
number <optional> |