---
title: "atomicRequest(with:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterthermostat/atomicrequest(with:expectedvalues:expectedvalueinterval:completion:)"
---

# atomicRequest(with:expectedValues:expectedValueInterval:completion:)

## Declaration

```swift
func atomicRequest(with params: MTRThermostatClusterAtomicRequestParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable (MTRThermostatClusterAtomicResponseParams?, (any Error)?) -> Void)
```

```swift
func atomicRequest(with params: MTRThermostatClusterAtomicRequestParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws -> MTRThermostatClusterAtomicResponseParams
```
