---
title: "subscribeAttributeEndOfServiceAlert(with:subscriptionEstablished:reportHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustersmokecoalarm/subscribeattributeendofservicealert(with:subscriptionestablished:reporthandler:)"
---

# subscribeAttributeEndOfServiceAlert(with:subscriptionEstablished:reportHandler:)

## Declaration

```swift
func subscribeAttributeEndOfServiceAlert(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
```
