edilkamin
    Preparing search index...

    Function deriveRelax

    • Derives the Relax mode status from an existing DeviceInfo response. This is a pure function that extracts data without API calls.

      Parameters

      Returns boolean

      • Whether Relax mode is active.
      const info = await api.deviceInfo(token, mac);
      const isRelaxActive = deriveRelax(info);