File tree 2 files changed +8
-5
lines changed
src/darwin/Framework/CHIP
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1113,7 +1113,7 @@ - (NSData * _Nullable)attestationChallengeForDeviceID:(NSNumber *)deviceID
1113
1113
chip::CommissioneeDeviceProxy * deviceProxy;
1114
1114
1115
1115
auto errorCode = CHIP_NO_ERROR;
1116
- MATTER_LOG_METRIC_SCOPE (kMetricPASEVerifierForSetupCode , errorCode);
1116
+ MATTER_LOG_METRIC_SCOPE (kMetricAttestationChallengeForDevice , errorCode);
1117
1117
1118
1118
errorCode = self->_cppCommissioner ->GetDeviceBeingCommissioned ([deviceID unsignedLongLongValue ], &deviceProxy);
1119
1119
VerifyOrReturnValue (![MTRDeviceController checkForError: errorCode logMsg: kErrorGetCommissionee error: nil ], nil );
@@ -1885,10 +1885,10 @@ - (BOOL)openPairingWindow:(uint64_t)deviceID duration:(NSUInteger)duration error
1885
1885
return NO ;
1886
1886
}
1887
1887
1888
- __block CHIP_ERROR errorCode = CHIP_NO_ERROR;
1889
- MATTER_LOG_METRIC_SCOPE (kMetricOpenPairingWindow , errorCode);
1890
-
1891
1888
auto block = ^BOOL {
1889
+ CHIP_ERROR errorCode = CHIP_NO_ERROR;
1890
+ MATTER_LOG_METRIC_SCOPE (kMetricOpenPairingWindow , errorCode);
1891
+
1892
1892
errorCode = chip::Controller::AutoCommissioningWindowOpener::OpenBasicCommissioningWindow (
1893
1893
self->_cppCommissioner , deviceID, chip::System::Clock::Seconds16 (static_cast <uint16_t >(duration)));
1894
1894
return ![MTRDeviceController checkForError: errorCode logMsg: kErrorOpenPairingWindow error: error];
Original file line number Diff line number Diff line change @@ -61,8 +61,11 @@ constexpr Tracing::MetricKey kMetricDeviceBeingCommissioned = "dwnfw_dev_being_c
61
61
// Tracks the request to generate PASE verifier for a given setup code
62
62
constexpr Tracing::MetricKey kMetricPASEVerifierForSetupCode = " dwnfw_pase_verifier_for_code" ;
63
63
64
+ // Tracks the request to get attestation challenge for a device
65
+ constexpr Tracing::MetricKey kMetricAttestationChallengeForDevice = " dwnfw_attestation_challenge_for_device" ;
66
+
64
67
// Marks the request to open pairing window
65
- constexpr Tracing::MetricKey kMetricOpenPairingWindow = " dwnfw_pase_verifier_for_code " ;
68
+ constexpr Tracing::MetricKey kMetricOpenPairingWindow = " dwnfw_open_pairing_window " ;
66
69
67
70
// Device Vendor ID
68
71
constexpr Tracing::MetricKey kMetricDeviceVendorID = " dwnfw_device_vendor_id" ;
You can’t perform that action at this time.
0 commit comments