-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating a QR code string #35
Comments
A few more details... I did try changing the data type of the QRCode to MutableCharSpan and copying the returned string as I am assuming this is due to declaring QRCode simply as |
ok, it wasn't easy/obvious, but I got it working. Here's the code
|
Thanks for sharing it ;) Btw. there should be possibility to set these codes, however I haven't tested it: |
First of all, thank you for your work!
I am working on a device that has a touchscreen and want to generate a QR code myself to display (allowing the user to merely scan that to provision it).
I understand calling PrintOnboardingCodes() will show the text of the QR code, but I want to retrieve the data string, generate the QR code and display it. When I call chip::GetQRCode() with a std::string as the first arg, I am met with an incompatible type:
The code snippet is:
What is the right way to fetch the QR code string?
The text was updated successfully, but these errors were encountered: