From bb6fd28eb3acda0ee642e24f7c08ddeaea8ad4e6 Mon Sep 17 00:00:00 2001 From: Jeff Tung <100387939+jtung-apple@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:33:05 -0800 Subject: [PATCH] Fixed XPC connection bits --- src/darwin/Framework/CHIP/MTRDeviceOverXPC.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/darwin/Framework/CHIP/MTRDeviceOverXPC.mm b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.mm index c37754e15a95e9..36dc5b27410da1 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceOverXPC.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.mm @@ -138,6 +138,16 @@ - (void)readAttributePaths:(NSArray * _Nullable)attri params:(MTRReadParams * _Nullable)params queue:(dispatch_queue_t)queue completion:(MTRDeviceResponseHandler)completion +{ + [self readAttributePaths:attributePaths eventPaths:eventPaths params:params includeDataVersion:NO queue:queue completion:completion]; +} + +- (void)readAttributePaths:(NSArray * _Nullable)attributePaths + eventPaths:(NSArray * _Nullable)eventPaths + params:(MTRReadParams * _Nullable)params + includeDataVersion:(BOOL)includeDataVersion + queue:(dispatch_queue_t)queue + completion:(MTRDeviceResponseHandler)completion { if (attributePaths == nil || eventPaths != nil) { MTR_LOG_ERROR("MTRBaseDevice doesn't support reading event paths over XPC");