---
title: "subscribeAttributeACErrorCode(withMinInterval:maxInterval:params:subscriptionEstablished:reportHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthermostat/subscribeattributeacerrorcode(withmininterval:maxinterval:params:subscriptionestablished:reporthandler:)"
---

# subscribeAttributeACErrorCode(withMinInterval:maxInterval:params:subscriptionEstablished:reportHandler:)

## Declaration

```swift
func subscribeAttributeACErrorCode(withMinInterval minInterval: NSNumber, maxInterval: NSNumber, params: MTRSubscribeParams?, subscriptionEstablished subscriptionEstablishedHandler: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
```
