Skip to content

Is it possible to get QR code from the matter.js import ? #1167

Answered by Apollon77
MatthieuCa asked this question in Q&A
Discussion options

You must be logged in to vote

Yes sure ... see

if (!server.lifecycle.isCommissioned) {
const { qrPairingCode, manualPairingCode } = server.state.commissioning.pairingCodes;
console.log(QrCode.get(qrPairingCode));
console.log(`QR Code URL: https://project-chip.github.io/connectedhomeip/qrcode.html?data=${qrPairingCode}`);
console.log(`Manual pairing code: ${manualPairingCode}`);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MatthieuCa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants