diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m index 253b1c51c453d5..7833d41d1d0abd 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/QRCode/QRCodeViewController.m @@ -589,7 +589,7 @@ - (void)parseOptionalData:(CHIPSetupPayload *)payload - (void)handleRendezVous:(CHIPSetupPayload *)payload { switch (payload.rendezvousInformation) { - case kRendendezvousInformationOnNetwork: + case kRendezvousInformationOnNetwork: case kRendezvousInformationAllMask: NSLog(@"Rendezvous Unknown"); break; diff --git a/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj b/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj index 3f0ebc7e690986..0e2c867b17688a 100644 --- a/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj +++ b/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + 1E9BD1C72621AFF100FC3246 /* attribute-size.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1E9BD1C62621AFF100FC3246 /* attribute-size.cpp */; }; 1EC4CE3A25CC263E00D7304F /* reporting.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE3825CC263E00D7304F /* reporting.cpp */; }; 1EC4CE3B25CC263E00D7304F /* reporting-default-configuration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE3925CC263E00D7304F /* reporting-default-configuration.cpp */; }; 1EC4CE3D25CC265200D7304F /* DataModelHandler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE3C25CC265200D7304F /* DataModelHandler.cpp */; }; @@ -67,6 +68,7 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ + 1E9BD1C62621AFF100FC3246 /* attribute-size.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "attribute-size.cpp"; path = "gen/attribute-size.cpp"; sourceTree = ""; }; 1EC4CE3825CC263E00D7304F /* reporting.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = reporting.cpp; path = ../../../app/reporting/reporting.cpp; sourceTree = ""; }; 1EC4CE3925CC263E00D7304F /* reporting-default-configuration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "reporting-default-configuration.cpp"; path = "../../../app/reporting/reporting-default-configuration.cpp"; sourceTree = ""; }; 1EC4CE3C25CC265200D7304F /* DataModelHandler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DataModelHandler.cpp; path = ../../../app/server/DataModelHandler.cpp; sourceTree = ""; }; @@ -169,6 +171,7 @@ 1EC4CE5825CC26AB00D7304F /* CHIPGeneratedFiles */ = { isa = PBXGroup; children = ( + 1E9BD1C62621AFF100FC3246 /* attribute-size.cpp */, 1EC4CE6325CC276600D7304F /* CHIPClustersObjc.h */, 1EC4CE5A25CC26E900D7304F /* call-command-handler.cpp */, 1EC4CE5B25CC26E900D7304F /* callback-stub.cpp */, @@ -410,6 +413,7 @@ 1ED0B8CC260125E100D19DB5 /* media-playback-client.cpp in Sources */, 1EC4CE5125CC267700D7304F /* message.cpp in Sources */, 1EC4CE5D25CC26E900D7304F /* CHIPClustersObjc.mm in Sources */, + 1E9BD1C72621AFF100FC3246 /* attribute-size.cpp in Sources */, B2E0D7B3245B0B5C003C5B48 /* CHIPError.mm in Sources */, 1EC4CE5E25CC26E900D7304F /* call-command-handler.cpp in Sources */, 1EC4CE3B25CC263E00D7304F /* reporting-default-configuration.cpp in Sources */, diff --git a/src/darwin/Framework/CHIPTests/CHIPSetupPayloadParserTests.m b/src/darwin/Framework/CHIPTests/CHIPSetupPayloadParserTests.m index be85816b837844..70e549606dd5db 100644 --- a/src/darwin/Framework/CHIPTests/CHIPSetupPayloadParserTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPSetupPayloadParserTests.m @@ -90,7 +90,7 @@ - (void)testQRCodeParser XCTAssertEqual(payload.productID.unsignedIntegerValue, 1); XCTAssertFalse(payload.requiresCustomFlow); XCTAssertEqual(payload.version.unsignedIntegerValue, 5); - XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationWiFi); + XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationSoftAP); } - (void)testQRCodeParserWithOptionalData @@ -109,7 +109,7 @@ - (void)testQRCodeParserWithOptionalData XCTAssertEqual(payload.vendorID.unsignedIntegerValue, 12); XCTAssertEqual(payload.productID.unsignedIntegerValue, 1); XCTAssertFalse(payload.requiresCustomFlow); - XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationWiFi); + XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationSoftAP); XCTAssertTrue([payload.serialNumber isEqualToString:@"1"]); NSArray * vendorOptionalInfo = [payload getAllOptionalVendorData:&error];