qrCreate generate wrong QRcode according to content

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

qrCreate generate wrong QRcode according to content

Post by trevix » Thu Jun 08, 2023 4:20 pm

I spent several hours trying to debug the reason wifi the QRcode command was suddenly generating an unreadable QRcode, when I modified some text on it.

My working QRcode string, is the following:

Code: Select all

WIFI:S:Cudy3BFC;T:WPA;P:33333333;H:false
Text:|campolux|Cudy|33333333|WPA|192.168.10.173
The mobile photo app reads it fine and ask sto connect to the wifi, as it should. Also My app work fine with this. The reason for the two lines is that the first allows to connect to the WiFI and the second passes to LC some information. As I said, it works fine.

If I change the the text of the second line ("Cudy" > "Cudy3BFC"):

Code: Select all

WIFI:S:Cudy3BFC;T:WPA;P:33333333;H:false
Text:|campolux|Cudy3BFC|33333333|WPA|192.168.10.173
Nothing happens when trying to read the QRcode, with the photo app or with the LC code.
Can someone explain me this?
Should I encode the second text line? Base64Encode? else?
Thanks for any help (and if you know, an explanation)

Trevix
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

Thomas Heine
Posts: 5
Joined: Fri May 21, 2021 3:15 pm

Re: qrCreate generate wrong QRcode according to content

Post by Thomas Heine » Sun Sep 17, 2023 10:49 pm

Hi,
i have tried to reconstruct this. I managed to create and read the qr-code without error. The strange thing is: At first the read with the app created an shortened text, then i deleted the first colon after wifi, and it worked fine. Dont know why. Maybe you can also so try to delete the first colon and see, if it works. But would be strange

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”