---
title: "readEvents(withEndpointID:clusterID:eventID:params:queue:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbasedevice/readevents(withendpointid:clusterid:eventid:params:queue:completion:)"
---

# readEvents(withEndpointID:clusterID:eventID:params:queue:completion:)

## Declaration

```swift
func readEvents(withEndpointID endpointID: NSNumber?, clusterID: NSNumber?, eventID: NSNumber?, params: MTRReadParams?, queue: dispatch_queue_t, completion: @escaping @Sendable ([[String : Any]]?, (any Error)?) -> Void)
```

```swift
func readEvents(withEndpointID endpointID: NSNumber?, clusterID: NSNumber?, eventID: NSNumber?, params: MTRReadParams?, queue: dispatch_queue_t) async throws -> [[String : Any]]
```
