Closed JoeyYang2010 closed 2 months ago
setupPayload = try MTRSetupPayload(onboardingPayload: "3228-130-8191" )
Where is that coming from?
What you should be doing is using the onboardingPayload passed to this:
override func commissionDevice(in home: MatterAddDeviceRequest.Home?, onboardingPayload: String, commissioningID: UUID) async throws
to do your commissioning attempt.
@bzbarsky-apple try await request.perform(), when I run this code so that I can get the onboardingPayload, the code will freeze so I input the Matter device code directly, I think that should can work?
Update the latest issue, class RequestHandler: MatterAddDeviceExtensionRequestHandler { override func commissionDevice(in home: MatterAddDeviceRequest.Home?, onboardingPayload: String, commissioningID: UUID) async throws
is never called, so I can not get the onboardingPayload, I checked many bugs, but no clear response about this problem.
so I input the Matter device code directly, I think that should can work?
If it's the right code. The right code in this case is the one generated when the new commissioning window is opened, not the one printed on the device.
@bzbarsky-apple Did we have sample code using MatterSupport and Matter framework to commission device? Or do you know if I don't have a homepod or other apple's gateway, it may cause this issue?
@bzbarsky-apple For now, darwin.xcworkspace can not be compile on Xcode, I raise another ticket here and I saw others also raise similar issue here, but no response yet. When I try to use Apple's Matter/MatterSupport framework, I got the issue I raised here.
@JoeyYang2010 If strongly suggest you follow the instructions at https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/darwin.md#providing-feedback-to-apple to report issues that have to do with Apple-specific bits and not the open-source SDK.
Reproduction steps
Hi there: Below is my sample code, but I can not commission a sensor, the error is as below:
=============================== Code:
Bug prevalence
Each time
GitHub hash of the SDK that was being used
2024/4/19 master version
Platform
darwin
Platform Version(s)
No response
Anything else?
No response