Optional
getter: ((session?: Session, endpoint?: EndpointInterface, isFabricFiltered?: boolean, message?: Message) => T)Optional getter function to handle special requirements or the data are stored in different places.
Optional
session: Sessionthe session that is requesting the value (if any)
Optional
endpoint: EndpointInterfacethe endpoint the cluster server of this attribute is assigned to
Optional
isFabricFiltered: booleanwhether the read request is fabric scoped or not
Optional
message: Messagethe wire message that initiated the request (if any)
Protected
Readonly
datasourceReadonly
defaultProtected
Optional
endpointProtected
Readonly
getterReadonly
idReadonly
isReadonly
isReadonly
isReadonly
nameReadonly
requiresReadonly
schemaProtected
valueThe value is undefined when getter/setter are used. But we still handle the version number here.
Get the value of the attribute. This method is used by the Interaction model to read the value of the attribute and includes the ACL check. It should not be used locally in the code!
If a getter is defined the value is determined by that getter method.
Get the value of the attribute including the version number. This method is used by the Interaction model to read the value of the attribute and includes the ACL check. It should not be used locally in the code!
If a getter is defined the value is determined by that getter method. The version number is always 0 for fixed attributes.
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! If a getter or setter is defined the value must be undefined The version number must also be undefined.
Attribute server class that handled fixed attribute values that never change and is the base class for other Attribute server types.