MELCloud & MELCloud Home API for Node.js - v48.2.0
    Preparing search index...

    Function clampFrostProtection

    • Clamp a frost-protection min/max pair into range with the required gap: min lands in [4, 14], max in [6, 16], and max - min >= 2.

      Parameters

      • min: number

        Requested lower bound, in °C.

      • max: number

        Requested upper bound, in °C.

      Returns { max: number; min: number }

      The clamped { min, max } pair.