@@ -194,18 +194,20 @@ - (oneway void)deviceConfigurationChanged:(NSNumber *)nodeID
194
194
: expectedValueInterval timedWriteTimeout
195
195
: timeout)
196
196
197
- - (void )invokeCommandWithEndpointID:(NSNumber *)endpointID
198
- clusterID:(NSNumber *)clusterID
199
- commandID:(NSNumber *)commandID
200
- commandFields:(id )commandFields
201
- expectedValues:(NSArray <NSDictionary <NSString *, id > *> * _Nullable)expectedValues
202
- expectedValueInterval:(NSNumber * _Nullable)expectedValueInterval
203
- timedInvokeTimeout:(NSNumber * _Nullable)timeout
204
- queue:(dispatch_queue_t )queue
205
- completion:(MTRDeviceResponseHandler)completion
197
+ - (void )_invokeCommandWithEndpointID:(NSNumber *)endpointID
198
+ clusterID:(NSNumber *)clusterID
199
+ commandID:(NSNumber *)commandID
200
+ commandFields:(id )commandFields
201
+ expectedValues:(NSArray <NSDictionary <NSString *, id > *> * _Nullable)expectedValues
202
+ expectedValueInterval:(NSNumber * _Nullable)expectedValueInterval
203
+ timedInvokeTimeout:(NSNumber * _Nullable)timeout
204
+ serverSideProcessingTimeout:(NSNumber * _Nullable)serverSideProcessingTimeout
205
+ queue:(dispatch_queue_t )queue
206
+ completion:(MTRDeviceResponseHandler)completion
206
207
{
207
208
NSXPCConnection * xpcConnection = [(MTRDeviceController_XPC *) [self deviceController ] xpcConnection ];
208
209
210
+ // TODO: use asynchronous XPC and register a block with controller to call for this transaction
209
211
[[xpcConnection synchronousRemoteObjectProxyWithErrorHandler: ^(NSError * _Nonnull error) {
210
212
MTR_LOG_ERROR (" Error: %@" , error);
211
213
}] deviceController: [[self deviceController ] uniqueIdentifier ]
@@ -217,6 +219,7 @@ - (void)invokeCommandWithEndpointID:(NSNumber *)endpointID
217
219
expectedValues: expectedValues
218
220
expectedValueInterval: expectedValueInterval
219
221
timedInvokeTimeout: timeout
222
+ serverSideProcessingTimeout: serverSideProcessingTimeout
220
223
completion: completion];
221
224
}
222
225
0 commit comments