Manages the failsafe timer associated with a FailsafeContext.

Constructors

Properties

Methods

Constructors

  • Parameters

    • associatedFabric: undefined | Fabric
    • expiryLengthSeconds: number
    • maxCumulativeFailsafeSeconds: number
    • expiryCallback: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    Returns FailsafeTimer

Properties

associatedFabric: undefined | Fabric

Methods

  • Returns Promise<void>

  • Complete the FailSafe context. This is called when the commissioning is completed.

    Returns void

  • Expire the FailSafe context. This is called by the timer and can also be called manually if needed.

    Returns Promise<void>

  • Handle "Re-Arming" an existing FailSafe context to extend the timer, expire or fail if not allowed.

    Parameters

    • associatedFabric: undefined | Fabric
    • expiryLengthSeconds: number

    Returns Promise<void>