Readonly
eventsAccess the behavior's events.
Readonly
downloadThis event shall be generated whenever an error occurs during OTA Requestor download operation.
Readonly
stateThis event shall be generated when a change of the UpdateState attribute occurs due to an OTA Requestor moving through the states necessary to query for updates.
Readonly
versionThis event shall be generated whenever a new version starts executing after being applied due to a software update. This event SHOULD be generated even if a software update was done using means outside of this cluster.
Supported features as a flag object.
Readonly
stateAccess the behavior's state.
Readonly
defaultThis field is a list of ProviderLocation whose entries shall be set by Administrators, either during Commissioning or at a later time, to set the ProviderLocation for the default OTA Provider Node to use for software updates on a given Fabric.
There shall NOT be more than one entry per Fabric. On a list update that would introduce more than one entry per fabric, the write shall fail with CONSTRAINT_ERROR status code.
Provider Locations obtained using the AnnounceOTAProvider command shall NOT overwrite values set in the DefaultOTAProviders attribute.
Readonly
updateThis field shall be set to True if the OTA Requestor is currently able to be updated. Otherwise, it shall be set to False in case of any condition preventing update being possible, such as insufficient capacity of an internal battery. This field is merely informational for diagnostics purposes and shall NOT affect the responses provided by an OTA Provider to an OTA Requestor.
Readonly
updateThis field shall reflect the current state of the OTA Requestor with regards to obtaining software updates. See Section 11.20.7.4.2, “UpdateStateEnum Type” for possible values.
This field SHOULD be updated in a timely manner whenever OTA Requestor internal state updates.
Readonly
updateThis field shall reflect the percentage value of progress, relative to the current UpdateState, if applicable to the state.
The value of this field shall be null if a progress indication does not apply to the current state.
A value of 0 shall indicate that the beginning has occurred. A value of 100 shall indicate completion.
This field may be updated infrequently. Some care SHOULD be taken by Nodes to avoid over- reporting progress when this attribute is part of a subscription.
Release resources. This is the public API for releasing application resources held by behaviors in internal state.
This command may be invoked by Administrators to announce the presence of a particular OTA Provider.
This command shall be scoped to the accessing fabric.
If the accessing fabric index is 0, this command shall fail with an UNSUPPORTED_ACCESS status code.
Protected
callbackCreate a generic callback function that has the same properties as a Reactor.
Like a reactor, the callback's "this" will be bound to an active Behavior instance. Because of this: The reactor MUST be a real JS function - arrow functions will not work!
Behaviors are ephemeral and should not perform initialization in their constructor. They can override this method instead.
This method may be synchronous or asyncronous. If asynchronous, the behavior will not be available for external use until initialization completes.
Optional
_options: {}Protected
reactInstall a Reactor.
Important: The reactor MUST be a real JS function - arrow functions will not work!
The implemented cluster.