General class for AttributeClients

Type Parameters

  • T = any

Hierarchy (view full)

Constructors

Properties

attribute: Attribute<T, any>
clusterId: ClusterId
endpointId: EndpointNumber
name: string
schema: TlvSchema<any>

Methods

  • Get the value of the attribute. Fabric scoped reads are always done with the remote.

    Parameters

    • OptionalalwaysRequestFromRemote: boolean
    • isFabricFiltered: boolean = true

    Returns Promise<undefined | T>

  • Get the value with version of the attribute. Fabric scoped reads are always done with the remote.

    Parameters

    • OptionalalwaysRequestFromRemote: boolean
    • isFabricFiltered: boolean = true

    Returns Promise<undefined | {
        value: T;
        version: number;
    }>

  • Set the value of the attribute. When dataVersion parameter is provided the value is only set when the cluster dataVersion of the server matches. If it does not match it is rejected with an Error.

    Parameters

    • value: T
    • OptionaldataVersion: number

    Returns Promise<void>

  • Subscribe to the attribute.

    Parameters

    • minIntervalFloorSeconds: number
    • maxIntervalCeilingSeconds: number
    • OptionalknownDataVersion: number
    • isFabricFiltered: boolean = true

    Returns Promise<void>