Hello.
When I call MatterAddDeviceRequest API, it returns HMErrorDomain Code=18 "Pairing Failed" error. As I seeing the log, commissioning from the CHIPDeviceController of the iOS Matter Stack fails due to the Incorrect state.
Here is the log:
default 10:41:50.653975-0500 HomeUIService [d <private>] <PKHost:0x283e6b000> Beginning discovery for flags: 1024, point: com.apple.matter.support.extension.device-setup
default 10:41:50.891778-0500 homed Setting thread operational dataset from parameters
default 10:41:50.891926-0500 homed Setting attestation nonce to random value
default 10:41:50.892235-0500 homed Setting CSR nonce to random value
error 10:41:50.892287-0500 homed Commissioning already in progress - not restarting
error 10:41:50.892648-0500 homed Error(../../../../../../../../Sources/CHIPFramework/connectedhomeip/src/controller/CHIPDeviceController.cpp:811: CHIP Error 0x00000003: Incorrect state): Failure while pairing the device
error 10:41:50.892873-0500 homed [3262693301/1] Commissioning failed: Error Domain=MTRErrorDomain Code=6 "Invalid object state." UserInfo={NSLocalizedDescription=Invalid object state., underlyingError=<private>}
error 10:41:50.892905-0500 homed [3262693301/1] CHIP Accessory pairing failed: Error Domain=MTRErrorDomain Code=6 "Invalid object state." UserInfo={NSLocalizedDescription=Invalid object state., underlyingError=<private>}
error 10:41:50.892930-0500 homed [3262693301/1] Cleaning up state due to pairing failure
connectedhomeip/src/controller/CHIPDeviceController.cpp :
CHIP_ERROR DeviceCommissioner::Commission(NodeId remoteDeviceId)
{
…
if (mCommissioningStage != CommissioningStage::kSecurePairing)
{
ChipLogError(Controller, "Commissioning already in progress - not restarting");
return CHIP_ERROR_INCORRECT_STATE;
}
Is there any update for this problem?