---
title: "resetCounts(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterwifinetworkdiagnostics/resetcounts(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# resetCounts(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func resetCounts(with params: MTRWiFiNetworkDiagnosticsClusterResetCountsParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func resetCounts(with params: MTRWiFiNetworkDiagnosticsClusterResetCountsParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
