WAC2 and QR code

I am implementing WAC2 on mu Accessory my accessory is using WiFi

my bridge is broadcasting beacons according to the WAC2 requirements. my iPhone is able to see the SSD of my device as HomeKit Accessory and it link me to the home app when I select the device SSID. when redirecting to the home app, it opens directly QR code scanner, I scan the old QR code of my device something like that (X-HM://0024BWBIC2V7B). But this will not proceed to connect to my device. Do I have use another QR code that contains SSID and passphrase? If o ho to generate this QR code ?