project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.33k stars 1.97k forks source link

[1.2] [Android] OnboardingPayloadParser cant parser optionalQRCodeInfo #31821

Open freemanspace opened 7 months ago

freemanspace commented 7 months ago

Reproduction steps

QRCode data as below

MT:6ZWJ0E.N16OXN77XG3P04-O-1ILZJ29CZK1VNYE1NPTE1KADO1ZTZR19EUE1ZK8N1JC-L10OK523FFU1Q1HN28K4S21E7G2B1FU1O3VE10.9E32NTO3TXWE1ETE528F0T0

var payload = OnboardingPayloadParser().parseQrCode(str) payload.optionalQRCodeInfo is empty

but if use 1.1.x version use SetupPayloadParser.parseQrCode() can get optionalQRCodeInfo

please help fix

Bug prevalence

every time

GitHub hash of the SDK that was being used

tag:1.2.0.1

Platform

android

Platform Version(s)

No response

Type

Platform Issue

Anything else?

No response

yunhanw-google commented 7 months ago

@freemanspace could you try this https://github.com/project-chip/connectedhomeip/pull/31251? which add optional qr code info support, thanks