-
Notifications
You must be signed in to change notification settings - Fork 514
CHIP macOS xcode13.2 b1
Rachel Kang edited this page Jan 26, 2022
·
3 revisions
#CHIP.framework https://github.com/xamarin/xamarin-macios/pull/13884
diff -ruN /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIP.h /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIP.h
--- /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIP.h 2021-08-27 23:53:02.000000000 -0400
+++ /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIP.h 2021-10-20 01:05:47.000000000 -0400
@@ -21,10 +21,12 @@
#import <CHIP/CHIPDeviceController.h>
#import <CHIP/CHIPDevicePairingDelegate.h>
#import <CHIP/CHIPError.h>
+#import <CHIP/CHIPKeypair.h>
#import <CHIP/CHIPManualSetupPayloadParser.h>
#import <CHIP/CHIPPersistentStorageDelegate.h>
#import <CHIP/CHIPQRCodeSetupPayloadParser.h>
#import <CHIP/CHIPSetupPayload.h>
+#import <CHIP/CHIPThreadOperationalDataset.h>
#import <Foundation/Foundation.h>
//! Project version number for CHIP.
diff -ruN /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPClustersObjc.h /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPClustersObjc.h
--- /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPClustersObjc.h 2021-08-07 11:01:50.000000000 -0400
+++ /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPClustersObjc.h 2021-10-20 01:06:39.000000000 -0400
@@ -35,7 +35,7 @@
@interface CHIPCluster : NSObject
- (nullable instancetype)initWithDevice:(CHIPDevice *)device
- endpoint:(uint8_t)endpoint
+ endpoint:(uint16_t)endpoint
queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
@@ -56,18 +56,40 @@
@end
/**
+ * Cluster AdministratorCommissioning
+ *
+ */
+@interface CHIPAdministratorCommissioning : CHIPCluster
+
+- (void)openBasicCommissioningWindow:(uint16_t)commissioningTimeout responseHandler:(ResponseHandler)responseHandler;
+- (void)openCommissioningWindow:(uint16_t)commissioningTimeout
+ pAKEVerifier:(NSData *)pAKEVerifier
+ discriminator:(uint16_t)discriminator
+ iterations:(uint32_t)iterations
+ salt:(NSData *)salt
+ passcodeID:(uint16_t)passcodeID
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)revokeCommissioning:(ResponseHandler)responseHandler;
+
+- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
* Cluster Application Basic
*
*/
@interface CHIPApplicationBasic : CHIPCluster
+- (void)changeStatus:(uint8_t)status responseHandler:(ResponseHandler)responseHandler;
+
- (void)readAttributeVendorNameWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeVendorIdWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeApplicationNameWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeProductIdWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeApplicationIdWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeCatalogVendorIdWithResponseHandler:(ResponseHandler)responseHandler;
-- (void)readAttributeApplicationSatusWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeApplicationStatusWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -84,6 +106,8 @@
responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeApplicationLauncherListWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeCatalogVendorIdWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeApplicationIdWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -98,6 +122,7 @@
- (void)selectOutput:(uint8_t)index responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeAudioOutputListWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeCurrentAudioOutputWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -146,7 +171,8 @@
- (void)readAttributeProductLabelWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeSerialNumberWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeLocalConfigDisabledWithResponseHandler:(ResponseHandler)responseHandler;
-- (void)writeAttributeLocalConfigDisabledWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeLocalConfigDisabledWithValue:(bool)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeReachableWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -158,9 +184,9 @@
@interface CHIPBinaryInputBasic : CHIPCluster
- (void)readAttributeOutOfServiceWithResponseHandler:(ResponseHandler)responseHandler;
-- (void)writeAttributeOutOfServiceWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeOutOfServiceWithValue:(bool)value responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributePresentValueWithResponseHandler:(ResponseHandler)responseHandler;
-- (void)writeAttributePresentValueWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributePresentValueWithValue:(bool)value responseHandler:(ResponseHandler)responseHandler;
- (void)configureAttributePresentValueWithMinInterval:(uint16_t)minInterval
maxInterval:(uint16_t)maxInterval
responseHandler:(ResponseHandler)responseHandler;
@@ -182,13 +208,13 @@
- (void)bind:(uint64_t)nodeId
groupId:(uint16_t)groupId
- endpointId:(uint8_t)endpointId
- clusterId:(uint16_t)clusterId
+ endpointId:(uint16_t)endpointId
+ clusterId:(uint32_t)clusterId
responseHandler:(ResponseHandler)responseHandler;
- (void)unbind:(uint64_t)nodeId
groupId:(uint16_t)groupId
- endpointId:(uint8_t)endpointId
- clusterId:(uint16_t)clusterId
+ endpointId:(uint16_t)endpointId
+ clusterId:(uint32_t)clusterId
responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@@ -226,6 +252,37 @@
*/
@interface CHIPColorControl : CHIPCluster
+- (void)colorLoopSet:(uint8_t)updateFlags
+ action:(uint8_t)action
+ direction:(uint8_t)direction
+ time:(uint16_t)time
+ startHue:(uint16_t)startHue
+ optionsMask:(uint8_t)optionsMask
+ optionsOverride:(uint8_t)optionsOverride
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)enhancedMoveHue:(uint8_t)moveMode
+ rate:(uint16_t)rate
+ optionsMask:(uint8_t)optionsMask
+ optionsOverride:(uint8_t)optionsOverride
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)enhancedMoveToHue:(uint16_t)enhancedHue
+ direction:(uint8_t)direction
+ transitionTime:(uint16_t)transitionTime
+ optionsMask:(uint8_t)optionsMask
+ optionsOverride:(uint8_t)optionsOverride
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)enhancedMoveToHueAndSaturation:(uint16_t)enhancedHue
+ saturation:(uint8_t)saturation
+ transitionTime:(uint16_t)transitionTime
+ optionsMask:(uint8_t)optionsMask
+ optionsOverride:(uint8_t)optionsOverride
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)enhancedStepHue:(uint8_t)stepMode
+ stepSize:(uint16_t)stepSize
+ transitionTime:(uint16_t)transitionTime
+ optionsMask:(uint8_t)optionsMask
+ optionsOverride:(uint8_t)optionsOverride
+ responseHandler:(ResponseHandler)responseHandler;
- (void)moveColor:(int16_t)rateX
rateY:(int16_t)rateY
optionsMask:(uint8_t)optionsMask
@@ -386,6 +443,8 @@
- (void)readAttributeColorLoopActiveWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeColorLoopDirectionWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeColorLoopTimeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeColorLoopStartEnhancedHueWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeColorLoopStoredEnhancedHueWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeColorCapabilitiesWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeColorTempPhysicalMinWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeColorTempPhysicalMaxWithResponseHandler:(ResponseHandler)responseHandler;
@@ -397,12 +456,12 @@
@end
/**
- * Cluster Content Launch
+ * Cluster Content Launcher
*
*/
-@interface CHIPContentLaunch : CHIPCluster
+@interface CHIPContentLauncher : CHIPCluster
-- (void)launchContent:(uint8_t)autoPlay data:(NSString *)data responseHandler:(ResponseHandler)responseHandler;
+- (void)launchContent:(bool)autoPlay data:(NSString *)data responseHandler:(ResponseHandler)responseHandler;
- (void)launchURL:(NSString *)contentURL displayString:(NSString *)displayString responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeAcceptsHeaderListWithResponseHandler:(ResponseHandler)responseHandler;
@@ -426,6 +485,19 @@
@end
/**
+ * Cluster Diagnostic Logs
+ *
+ */
+@interface CHIPDiagnosticLogs : CHIPCluster
+
+- (void)retrieveLogsRequest:(uint8_t)intent
+ requestedProtocol:(uint8_t)requestedProtocol
+ transferFileDesignator:(NSData *)transferFileDesignator
+ responseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
* Cluster Door Lock
*
*/
@@ -490,6 +562,27 @@
@end
/**
+ * Cluster Electrical Measurement
+ *
+ */
+@interface CHIPElectricalMeasurement : CHIPCluster
+
+- (void)readAttributeMeasurementTypeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTotalActivePowerWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRmsVoltageWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRmsVoltageMinWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRmsVoltageMaxWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRmsCurrentWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRmsCurrentMinWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRmsCurrentMaxWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeActivePowerWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeActivePowerMinWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeActivePowerMaxWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
* Cluster Ethernet Network Diagnostics
*
*/
@@ -518,6 +611,19 @@
@end
/**
+ * Cluster Flow Measurement
+ *
+ */
+@interface CHIPFlowMeasurement : CHIPCluster
+
+- (void)readAttributeMeasuredValueWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeMinMeasuredValueWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeMaxMeasuredValueWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
* Cluster General Commissioning
*
*/
@@ -534,9 +640,9 @@
timeoutMs:(uint32_t)timeoutMs
responseHandler:(ResponseHandler)responseHandler;
-- (void)readAttributeFabricIdWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeBreadcrumbWithResponseHandler:(ResponseHandler)responseHandler;
- (void)writeAttributeBreadcrumbWithValue:(uint64_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeBasicCommissioningInfoListWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -677,6 +783,7 @@
- (void)showInputStatus:(ResponseHandler)responseHandler;
- (void)readAttributeMediaInputListWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeCurrentMediaInputWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -693,9 +800,9 @@
- (void)mediaPlay:(ResponseHandler)responseHandler;
- (void)mediaPrevious:(ResponseHandler)responseHandler;
- (void)mediaRewind:(ResponseHandler)responseHandler;
+- (void)mediaSeek:(uint64_t)position responseHandler:(ResponseHandler)responseHandler;
- (void)mediaSkipBackward:(uint64_t)deltaPositionMilliseconds responseHandler:(ResponseHandler)responseHandler;
- (void)mediaSkipForward:(uint64_t)deltaPositionMilliseconds responseHandler:(ResponseHandler)responseHandler;
-- (void)mediaSkipSeek:(uint64_t)position responseHandler:(ResponseHandler)responseHandler;
- (void)mediaStartOver:(ResponseHandler)responseHandler;
- (void)mediaStop:(ResponseHandler)responseHandler;
@@ -745,18 +852,67 @@
timeoutMs:(uint32_t)timeoutMs
responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeFeatureMapWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
+ * Cluster OTA Software Update Provider
+ *
+ */
+@interface CHIPOtaSoftwareUpdateProvider : CHIPCluster
+
+- (void)applyUpdateRequest:(NSData *)updateToken newVersion:(uint32_t)newVersion responseHandler:(ResponseHandler)responseHandler;
+- (void)notifyUpdateApplied:(NSData *)updateToken
+ currentVersion:(uint32_t)currentVersion
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)queryImage:(uint16_t)vendorId
+ productId:(uint16_t)productId
+ imageType:(uint16_t)imageType
+ hardwareVersion:(uint16_t)hardwareVersion
+ currentVersion:(uint32_t)currentVersion
+ protocolsSupported:(uint8_t)protocolsSupported
+ location:(NSString *)location
+ requestorCanConsent:(bool)requestorCanConsent
+ metadataForProvider:(NSData *)metadataForProvider
+ responseHandler:(ResponseHandler)responseHandler;
+
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
/**
- * Cluster On/off
+ * Cluster Occupancy Sensing
+ *
+ */
+@interface CHIPOccupancySensing : CHIPCluster
+
+- (void)readAttributeOccupancyWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeOccupancyWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeOccupancyWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeOccupancySensorTypeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeOccupancySensorTypeBitmapWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
+ * Cluster On/Off
*
*/
@interface CHIPOnOff : CHIPCluster
- (void)off:(ResponseHandler)responseHandler;
+- (void)offWithEffect:(uint8_t)effectId effectVariant:(uint8_t)effectVariant responseHandler:(ResponseHandler)responseHandler;
- (void)on:(ResponseHandler)responseHandler;
+- (void)onWithRecallGlobalScene:(ResponseHandler)responseHandler;
+- (void)onWithTimedOff:(uint8_t)onOffControl
+ onTime:(uint16_t)onTime
+ offWaitTime:(uint16_t)offWaitTime
+ responseHandler:(ResponseHandler)responseHandler;
- (void)toggle:(ResponseHandler)responseHandler;
- (void)readAttributeOnOffWithResponseHandler:(ResponseHandler)responseHandler;
@@ -764,6 +920,27 @@
maxInterval:(uint16_t)maxInterval
responseHandler:(ResponseHandler)responseHandler;
- (void)reportAttributeOnOffWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeGlobalSceneControlWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeOnTimeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeOnTimeWithValue:(uint16_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeOffWaitTimeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeOffWaitTimeWithValue:(uint16_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeStartUpOnOffWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeStartUpOnOffWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeFeatureMapWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
+ * Cluster On/off Switch Configuration
+ *
+ */
+@interface CHIPOnOffSwitchConfiguration : CHIPCluster
+
+- (void)readAttributeSwitchTypeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeSwitchActionsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeSwitchActionsWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -774,22 +951,39 @@
*/
@interface CHIPOperationalCredentials : CHIPCluster
-- (void)addOpCert:(NSData *)noc
- iCACertificate:(NSData *)iCACertificate
+- (void)addNOC:(NSData *)nOCArray
iPKValue:(NSData *)iPKValue
caseAdminNode:(uint64_t)caseAdminNode
adminVendorId:(uint16_t)adminVendorId
responseHandler:(ResponseHandler)responseHandler;
+- (void)addTrustedRootCertificate:(NSData *)rootCertificate responseHandler:(ResponseHandler)responseHandler;
- (void)opCSRRequest:(NSData *)cSRNonce responseHandler:(ResponseHandler)responseHandler;
-- (void)removeAllFabrics:(ResponseHandler)responseHandler;
-- (void)removeFabric:(uint64_t)fabricId
- nodeId:(uint64_t)nodeId
- vendorId:(uint16_t)vendorId
- responseHandler:(ResponseHandler)responseHandler;
-- (void)setFabric:(uint16_t)vendorId responseHandler:(ResponseHandler)responseHandler;
+- (void)removeFabric:(uint8_t)fabricIndex responseHandler:(ResponseHandler)responseHandler;
+- (void)removeTrustedRootCertificate:(NSData *)trustedRootIdentifier responseHandler:(ResponseHandler)responseHandler;
- (void)updateFabricLabel:(NSString *)label responseHandler:(ResponseHandler)responseHandler;
+- (void)updateNOC:(NSData *)nOCArray responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeFabricsListWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeSupportedFabricsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeCommissionedFabricsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
+ * Cluster Pressure Measurement
+ *
+ */
+@interface CHIPPressureMeasurement : CHIPCluster
+
+- (void)readAttributeMeasuredValueWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeMeasuredValueWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ change:(int16_t)change
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeMeasuredValueWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeMinMeasuredValueWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeMaxMeasuredValueWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -845,7 +1039,7 @@
sceneId:(uint8_t)sceneId
transitionTime:(uint16_t)transitionTime
sceneName:(NSString *)sceneName
- clusterId:(uint16_t)clusterId
+ clusterId:(uint32_t)clusterId
length:(uint8_t)length
value:(uint8_t)value
responseHandler:(ResponseHandler)responseHandler;
@@ -955,12 +1149,13 @@
@interface CHIPTestCluster : CHIPCluster
- (void)test:(ResponseHandler)responseHandler;
+- (void)testAddArguments:(uint8_t)arg1 arg2:(uint8_t)arg2 responseHandler:(ResponseHandler)responseHandler;
- (void)testNotHandled:(ResponseHandler)responseHandler;
- (void)testSpecific:(ResponseHandler)responseHandler;
- (void)testUnknownCommand:(ResponseHandler)responseHandler;
- (void)readAttributeBooleanWithResponseHandler:(ResponseHandler)responseHandler;
-- (void)writeAttributeBooleanWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeBooleanWithValue:(bool)value responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeBitmap8WithResponseHandler:(ResponseHandler)responseHandler;
- (void)writeAttributeBitmap8WithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeBitmap16WithResponseHandler:(ResponseHandler)responseHandler;
@@ -994,6 +1189,14 @@
- (void)readAttributeListInt8uWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeListOctetStringWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeListStructOctetStringWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeLongOctetStringWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeLongOctetStringWithValue:(NSData *)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeCharStringWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeCharStringWithValue:(NSString *)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeLongCharStringWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeLongCharStringWithValue:(NSString *)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeUnsupportedWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeUnsupportedWithValue:(bool)value responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -1020,27 +1223,118 @@
change:(int16_t)change
responseHandler:(ResponseHandler)responseHandler;
- (void)reportAttributeLocalTemperatureWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeAbsMinHeatSetpointLimitWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeAbsMaxHeatSetpointLimitWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeAbsMinCoolSetpointLimitWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeAbsMaxCoolSetpointLimitWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeOccupiedCoolingSetpointWithResponseHandler:(ResponseHandler)responseHandler;
- (void)writeAttributeOccupiedCoolingSetpointWithValue:(int16_t)value responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeOccupiedHeatingSetpointWithResponseHandler:(ResponseHandler)responseHandler;
- (void)writeAttributeOccupiedHeatingSetpointWithValue:(int16_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeMinHeatSetpointLimitWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeMinHeatSetpointLimitWithValue:(int16_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeMaxHeatSetpointLimitWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeMaxHeatSetpointLimitWithValue:(int16_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeMinCoolSetpointLimitWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeMinCoolSetpointLimitWithValue:(int16_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeMaxCoolSetpointLimitWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeMaxCoolSetpointLimitWithValue:(int16_t)value responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeControlSequenceOfOperationWithResponseHandler:(ResponseHandler)responseHandler;
- (void)writeAttributeControlSequenceOfOperationWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeSystemModeWithResponseHandler:(ResponseHandler)responseHandler;
- (void)writeAttributeSystemModeWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeStartOfWeekWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeNumberOfWeeklyTransitionsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeNumberOfDailyTransitionsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeFeatureMapWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
/**
- * Cluster Trusted Root Certificates
+ * Cluster Thermostat User Interface Configuration
*
*/
-@interface CHIPTrustedRootCertificates : CHIPCluster
+@interface CHIPThermostatUserInterfaceConfiguration : CHIPCluster
-- (void)addTrustedRootCertificate:(NSData *)rootCertificate responseHandler:(ResponseHandler)responseHandler;
-- (void)removeTrustedRootCertificate:(NSData *)trustedRootIdentifier responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTemperatureDisplayModeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeTemperatureDisplayModeWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeKeypadLockoutWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeKeypadLockoutWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeScheduleProgrammingVisibilityWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)writeAttributeScheduleProgrammingVisibilityWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
+ * Cluster Thread Network Diagnostics
+ *
+ */
+@interface CHIPThreadNetworkDiagnostics : CHIPCluster
+- (void)resetCounts:(ResponseHandler)responseHandler;
+
+- (void)readAttributeChannelWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRoutingRoleWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeNetworkNameWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributePanIdWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeExtendedPanIdWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeMeshLocalPrefixWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeOverrunCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeNeighborTableListWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRouteTableListWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributePartitionIdWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeWeightingWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeDataVersionWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeStableDataVersionWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeLeaderRouterIdWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeDetachedRoleCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeChildRoleCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRouterRoleCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeLeaderRoleCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeAttachAttemptCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributePartitionIdChangeCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeBetterPartitionAttachAttemptCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeParentChangeCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxTotalCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxUnicastCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxBroadcastCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxAckRequestedCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxAckedCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxNoAckRequestedCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxDataCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxDataPollCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxBeaconCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxBeaconRequestCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxOtherCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxRetryCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxDirectMaxRetryExpiryCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxIndirectMaxRetryExpiryCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxErrCcaCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxErrAbortCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTxErrBusyChannelCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxTotalCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxUnicastCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxBroadcastCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxDataCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxDataPollCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxBeaconCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxBeaconRequestCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxOtherCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxAddressFilteredCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxDestAddrFilteredCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxDuplicatedCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxErrNoFrameCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxErrUnknownNeighborCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxErrInvalidSrcAddrCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxErrSecCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxErrFcsCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRxErrOtherCountWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeSecurityPolicyWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeChannelMaskWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeOperationalDatasetComponentsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeActiveNetworkFaultsListWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
@@ -1057,47 +1351,97 @@
@end
/**
+ * Cluster WiFi Network Diagnostics
+ *
+ */
+@interface CHIPWiFiNetworkDiagnostics : CHIPCluster
+
+- (void)resetCounts:(ResponseHandler)responseHandler;
+
+- (void)readAttributeBssidWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeSecurityTypeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeWiFiVersionWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeChannelNumberWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeRssiWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
+
+@end
+
+/**
* Cluster Window Covering
*
*/
@interface CHIPWindowCovering : CHIPCluster
-- (void)windowCoveringDownClose:(ResponseHandler)responseHandler;
-- (void)windowCoveringGoToLiftPercentage:(uint8_t)percentageLiftValue responseHandler:(ResponseHandler)responseHandler;
-- (void)windowCoveringGoToLiftValue:(uint16_t)liftValue responseHandler:(ResponseHandler)responseHandler;
-- (void)windowCoveringGoToTiltPercentage:(uint8_t)percentageTiltValue responseHandler:(ResponseHandler)responseHandler;
-- (void)windowCoveringGoToTiltValue:(uint16_t)tiltValue responseHandler:(ResponseHandler)responseHandler;
-- (void)windowCoveringStop:(ResponseHandler)responseHandler;
-- (void)windowCoveringUpOpen:(ResponseHandler)responseHandler;
-
-- (void)readAttributeWindowCoveringTypeWithResponseHandler:(ResponseHandler)responseHandler;
-- (void)configureAttributeWindowCoveringTypeWithMinInterval:(uint16_t)minInterval
- maxInterval:(uint16_t)maxInterval
- responseHandler:(ResponseHandler)responseHandler;
-- (void)reportAttributeWindowCoveringTypeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)downOrClose:(ResponseHandler)responseHandler;
+- (void)goToLiftPercentage:(uint8_t)liftPercentageValue
+ liftPercent100thsValue:(uint16_t)liftPercent100thsValue
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)goToLiftValue:(uint16_t)liftValue responseHandler:(ResponseHandler)responseHandler;
+- (void)goToTiltPercentage:(uint8_t)tiltPercentageValue
+ tiltPercent100thsValue:(uint16_t)tiltPercent100thsValue
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)goToTiltValue:(uint16_t)tiltValue responseHandler:(ResponseHandler)responseHandler;
+- (void)stopMotion:(ResponseHandler)responseHandler;
+- (void)upOrOpen:(ResponseHandler)responseHandler;
+
+- (void)readAttributeTypeWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeCurrentPositionLiftWithResponseHandler:(ResponseHandler)responseHandler;
-- (void)configureAttributeCurrentPositionLiftWithMinInterval:(uint16_t)minInterval
- maxInterval:(uint16_t)maxInterval
- change:(uint16_t)change
- responseHandler:(ResponseHandler)responseHandler;
-- (void)reportAttributeCurrentPositionLiftWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeCurrentPositionTiltWithResponseHandler:(ResponseHandler)responseHandler;
-- (void)configureAttributeCurrentPositionTiltWithMinInterval:(uint16_t)minInterval
- maxInterval:(uint16_t)maxInterval
- change:(uint16_t)change
- responseHandler:(ResponseHandler)responseHandler;
-- (void)reportAttributeCurrentPositionTiltWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeConfigStatusWithResponseHandler:(ResponseHandler)responseHandler;
-- (void)configureAttributeConfigStatusWithMinInterval:(uint16_t)minInterval
- maxInterval:(uint16_t)maxInterval
- responseHandler:(ResponseHandler)responseHandler;
-- (void)reportAttributeConfigStatusWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeCurrentPositionLiftPercentageWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeCurrentPositionLiftPercentageWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ change:(uint8_t)change
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeCurrentPositionLiftPercentageWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeCurrentPositionTiltPercentageWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeCurrentPositionTiltPercentageWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ change:(uint8_t)change
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeCurrentPositionTiltPercentageWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeOperationalStatusWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeOperationalStatusWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeOperationalStatusWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTargetPositionLiftPercent100thsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeTargetPositionLiftPercent100thsWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ change:(uint16_t)change
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeTargetPositionLiftPercent100thsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeTargetPositionTiltPercent100thsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeTargetPositionTiltPercent100thsWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ change:(uint16_t)change
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeTargetPositionTiltPercent100thsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeEndProductTypeWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeCurrentPositionLiftPercent100thsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeCurrentPositionLiftPercent100thsWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ change:(uint16_t)change
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeCurrentPositionLiftPercent100thsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeCurrentPositionTiltPercent100thsWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeCurrentPositionTiltPercent100thsWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ change:(uint16_t)change
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeCurrentPositionTiltPercent100thsWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeInstalledOpenLimitLiftWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeInstalledClosedLimitLiftWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeInstalledOpenLimitTiltWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeInstalledClosedLimitTiltWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeModeWithResponseHandler:(ResponseHandler)responseHandler;
- (void)writeAttributeModeWithValue:(uint8_t)value responseHandler:(ResponseHandler)responseHandler;
+- (void)readAttributeSafetyStatusWithResponseHandler:(ResponseHandler)responseHandler;
+- (void)configureAttributeSafetyStatusWithMinInterval:(uint16_t)minInterval
+ maxInterval:(uint16_t)maxInterval
+ responseHandler:(ResponseHandler)responseHandler;
+- (void)reportAttributeSafetyStatusWithResponseHandler:(ResponseHandler)responseHandler;
- (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler;
@end
diff -ruN /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPDeviceController.h /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPDeviceController.h
--- /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPDeviceController.h 2021-08-27 23:53:02.000000000 -0400
+++ /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPDeviceController.h 2021-10-20 01:06:39.000000000 -0400
@@ -26,8 +26,11 @@
NS_ASSUME_NONNULL_BEGIN
+typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSError * _Nullable error);
+
@protocol CHIPDevicePairingDelegate;
@protocol CHIPPersistentStorageDelegate;
+@protocol CHIPKeypair;
@interface CHIPDeviceController : NSObject
@@ -36,6 +39,7 @@
- (BOOL)pairDevice:(uint64_t)deviceID
discriminator:(uint16_t)discriminator
setupPINCode:(uint32_t)setupPINCode
+ csrNonce:(nullable NSData *)csrNonce
error:(NSError * __autoreleasing *)error;
- (BOOL)pairDevice:(uint64_t)deviceID
@@ -60,6 +64,10 @@
- (BOOL)stopDevicePairing:(uint64_t)deviceID error:(NSError * __autoreleasing *)error;
- (void)updateDevice:(uint64_t)deviceID fabricId:(uint64_t)fabricId;
+- (BOOL)isDevicePaired:(uint64_t)deviceID error:(NSError * __autoreleasing *)error;
+- (BOOL)getConnectedDevice:(uint64_t)deviceID
+ queue:(dispatch_queue_t)queue
+ completionHandler:(CHIPDeviceConnectionCallback)completionHandler;
- (nullable CHIPDevice *)getPairedDevice:(uint64_t)deviceID error:(NSError * __autoreleasing *)error;
- (instancetype)init NS_UNAVAILABLE;
@@ -89,8 +97,12 @@
* check if the stack needs to be started up.
*
* @param[in] storageDelegate The delegate for persistent storage
+ * @param[in] vendorId The vendor ID of the commissioner application
+ * @param[in] nocSigner The CHIPKeypair that is used to generate and sign Node Operational Credentials
*/
-- (BOOL)startup:(nullable id<CHIPPersistentStorageDelegate>)storageDelegate;
+- (BOOL)startup:(_Nullable id<CHIPPersistentStorageDelegate>)storageDelegate
+ vendorId:(uint16_t)vendorId
+ nocSigner:(nullable id<CHIPKeypair>)nocSigner;
/**
* Shutdown the CHIP Stack. Repeated calls to shutdown without calls to startup in between are NO-OPs.
diff -ruN /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPError.h /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPError.h
--- /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPError.h 2021-08-27 23:53:02.000000000 -0400
+++ /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPError.h 2021-10-20 01:05:47.000000000 -0400
@@ -20,24 +20,18 @@
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT NSErrorDomain const CHIPErrorDomain;
-typedef int32_t CHIP_ERROR;
-
-typedef NS_ERROR_ENUM(CHIPErrorDomain, CHIPErrorCode) {
- CHIPSuccess = 0,
- CHIPErrorCodeUndefinedError = 1,
- CHIPErrorCodeInvalidStringLength = 2,
- CHIPErrorCodeInvalidIntegerValue = 3,
- CHIPErrorCodeInvalidArgument = 4,
+typedef NS_ERROR_ENUM(CHIPErrorDomain, CHIPErrorCode){
+ CHIPSuccess = 0,
+ CHIPErrorCodeUndefinedError = 1,
+ CHIPErrorCodeInvalidStringLength = 2,
+ CHIPErrorCodeInvalidIntegerValue = 3,
+ CHIPErrorCodeInvalidArgument = 4,
CHIPErrorCodeInvalidMessageLength = 5,
- CHIPErrorCodeInvalidState = 6,
- CHIPErrorCodeWrongAddressType = 7,
+ CHIPErrorCodeInvalidState = 6,
+ CHIPErrorCodeWrongAddressType = 7,
CHIPErrorCodeIntegrityCheckFailed = 8,
- CHIPErrorCodeDuplicateExists = 9,
+ CHIPErrorCodeDuplicateExists = 9,
+ CHIPErrorCodeUnsupportedAttribute = 10,
};
-@interface CHIPError : NSObject
-+ (nullable NSError *)errorForCHIPErrorCode:(CHIP_ERROR)errorCode;
-+ (CHIP_ERROR)errorToCHIPErrorCode:(NSError *)errorCode;
-@end
-
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPKeypair.h /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPKeypair.h
--- /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPKeypair.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPKeypair.h 2021-10-20 01:05:47.000000000 -0400
@@ -0,0 +1,46 @@
+/**
+ *
+ * Copyright (c) 2021 Project CHIP Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import <Security/Security.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@protocol CHIPKeypair <NSObject>
+@required
+
+/**
+ * @brief Initialize the keypair.
+ * @return Should return whether or not the keypair was successfully initialized
+ **/
+- (BOOL)initialize;
+
+/**
+ * @brief A function to sign a hash using ECDSA
+ * @param hash Hash that needs to be signed
+ *
+ * @return Returns A signature that consists of: 2 EC elements (r and s), in raw <r,s> point form (see SEC1).
+ **/
+- (NSData *)ECDSA_sign_hash:(NSData *)hash;
+
+/** @brief Return public key for the keypair.
+ **/
+- (SecKeyRef)pubkey;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPThreadOperationalDataset.h /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPThreadOperationalDataset.h
--- /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPThreadOperationalDataset.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CHIP.framework/Headers/CHIPThreadOperationalDataset.h 2021-10-20 01:05:47.000000000 -0400
@@ -0,0 +1,89 @@
+/**
+ *
+ * Copyright (c) 2021 Project CHIP Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface CHIPThreadOperationalDataset : NSObject
+
+/**
+ * The expected lengths of each of the NSData fields in the CHIPThreadOperationalDataset
+ *
+ * initWithNetworkName must be provided NSData fields with at least these lengths otherwise
+ * the object will fail to init.
+ */
+extern size_t const CHIPSizeThreadNetworkName;
+extern size_t const CHIPSizeThreadExtendedPanId;
+extern size_t const CHIPSizeThreadMasterKey;
+extern size_t const CHIPSizeThreadPSKc;
+
+/**
+ * The Thread Network name
+ */
+@property (nonatomic, nullable, copy, readonly) NSString * networkName;
+/**
+ * The Thread Network extendended PAN ID
+ */
+@property (nonatomic, nullable, copy, readonly) NSData * extendedPANID;
+/**
+ * The 16 byte Master Key
+ */
+@property (nonatomic, nullable, copy, readonly) NSData * masterKey;
+/**
+ * The Thread PSKc
+ */
+@property (nonatomic, nullable, copy, readonly) NSData * PSKc;
+/**
+ * The Thread network channel
+ */
+@property (nonatomic, readwrite) uint16_t channel;
+/**
+ * A uint16_t stored as 2-bytes in host order representing the Thread PAN ID
+ */
+@property (nonatomic, nullable, copy, readonly) NSData * panID;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+/**
+ * Create a Thread Operational Dataset object with the individual network fields.
+ * This initializer will return nil if any of the NSData fields don't match the expected size.
+ *
+ * Note: The panID is expected to be a uint16_t stored as 2-bytes in host order
+ */
+- (nullable instancetype)initWithNetworkName:(NSString *)networkName
+ extendedPANID:(NSData *)extendedPANID
+ masterKey:(NSData *)masterKey
+ PSKc:(NSData *)PSKc
+ channel:(uint16_t)channel
+ panID:(NSData *)panID;
+
+/**
+ * Create a Thread Operational Dataset object with a RCP formatted active operational dataset.
+ * This initializer will return nil if the input data cannot be parsed correctly
+ */
+- (nullable instancetype)initWithData:(NSData *)data;
+
+/**
+ * Get the underlying data that represents the Thread Active Operational Dataset
+ */
+- (NSData *)asData;
+
+@end
+
+NS_ASSUME_NONNULL_END
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status