Base class for all attribute servers.

Type Parameters

  • T

Hierarchy (view full)

Constructors

  • Type Parameters

    • T

    Parameters

    • id: AttributeId
    • name: string
    • readAcl: undefined | AccessLevel
    • writeAcl: undefined | AccessLevel
    • schema: TlvSchema<T>
    • isWritable: boolean
    • isSubscribable: boolean
    • requiresTimedInteraction: boolean
    • initValue: T
    • defaultValue: undefined | T

    Returns BaseAttributeServer<T>

Properties

defaultValue: T
isSubscribable: boolean
isWritable: boolean
name: string
requiresTimedInteraction: boolean
schema: TlvSchema<T>
value: undefined | T

The value is undefined when getter/setter are used. But we still handle the version number here.

Accessors

  • get hasFabricSensitiveData(): boolean
  • Returns boolean

  • get readAcl(): AccessLevel
  • Returns AccessLevel

  • get writeAcl(): AccessLevel
  • Returns AccessLevel

Methods

  • Parameters

    Returns void

  • Initialize the value of the attribute, used when a persisted value is set initially or when values needs to be adjusted before the Device gets announced. Do not use this method to change values when the device is in use!

    Parameters

    • value: undefined | T

    Returns void

  • Parameters

    • value: T

    Returns void