Class BaseAttributeServer<T>Abstract

Base class for all attribute servers.

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

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

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

Accessors

Methods

  • 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