58
58
// allow readwrite access to superclass properties
59
59
@interface MTRDevice_Concrete ()
60
60
61
- @property (nonatomic, readwrite, copy) NSNumber * nodeID;
62
- @property (nonatomic, readwrite, nullable) MTRDeviceController * deviceController;
63
61
@property (nonatomic, readwrite) MTRAsyncWorkQueue<MTRDevice *> * asyncWorkQueue;
64
62
@property (nonatomic, readwrite) MTRDeviceState state;
65
63
@property (nonatomic, readwrite, nullable) NSDate * estimatedStartTime;
@@ -356,8 +354,6 @@ @implementation MTRDevice_Concrete {
356
354
}
357
355
358
356
// synthesize superclass property readwrite accessors
359
- @synthesize nodeID = _nodeID;
360
- @synthesize deviceController = _deviceController;
361
357
@synthesize queue = _queue;
362
358
@synthesize asyncWorkQueue = _asyncWorkQueue;
363
359
@synthesize state = _state;
@@ -372,9 +368,7 @@ - (instancetype)initWithNodeID:(NSNumber *)nodeID controller:(MTRDeviceControlle
372
368
if (self = [super initForSubclassesWithNodeID:nodeID controller:controller]) {
373
369
_timeSyncLock = OS_UNFAIR_LOCK_INIT;
374
370
_descriptionLock = OS_UNFAIR_LOCK_INIT;
375
- _nodeID = [nodeID copy];
376
371
_fabricIndex = controller.fabricIndex;
377
- _deviceController = controller;
378
372
_queue
379
373
= dispatch_queue_create("org.csa-iot.matter.framework.device.workqueue", DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL);
380
374
_expectedValueCache = [NSMutableDictionary dictionary];
@@ -467,7 +461,7 @@ - (NSString *)description
467
461
}
468
462
469
463
return [NSString
470
- stringWithFormat:@"<MTRDevice: %p, node: %016llX-%016llX (%llu), VID: %@, PID: %@, WiFi: %@, Thread: %@, state: %@, last subscription attempt wait: %lus, queued work: %lu, last report: %@%@, last subscription failure: %@%@, controller: %@>", self, _deviceController.compressedFabricID.unsignedLongLongValue, _nodeID.unsignedLongLongValue, _nodeID.unsignedLongLongValue, vid, pid, wifi, thread, InternalDeviceStateString(internalDeviceState), static_cast<unsigned long>(lastSubscriptionAttemptWait), static_cast<unsigned long>(_asyncWorkQueue.itemCount), mostRecentReportTime, reportAge, lastSubscriptionFailureTime, subscriptionFailureAge, _deviceController.uniqueIdentifier];
464
+ stringWithFormat:@"<MTRDevice: %p, XPC: NO, node: %016llX-%016llX (%llu), VID: %@, PID: %@, WiFi: %@, Thread: %@, state: %@, last subscription attempt wait: %lus, queued work: %lu, last report: %@%@, last subscription failure: %@%@, controller: %@>", self, _deviceController.compressedFabricID.unsignedLongLongValue, _nodeID.unsignedLongLongValue, _nodeID.unsignedLongLongValue, vid, pid, wifi, thread, InternalDeviceStateString(internalDeviceState), static_cast<unsigned long>(lastSubscriptionAttemptWait), static_cast<unsigned long>(_asyncWorkQueue.itemCount), mostRecentReportTime, reportAge, lastSubscriptionFailureTime, subscriptionFailureAge, _deviceController.uniqueIdentifier];
471
465
}
472
466
473
467
+ (MTRDevice *)deviceWithNodeID:(NSNumber *)nodeID controller:(MTRDeviceController *)controller
0 commit comments