There is a simple example how to generate a QR-code and show it in web-visu:
Example_QrCode_RPI.projectarchive
Requirements:1. You need to install
qrencode:
sudo apt-get install qrencode2. You need to install
OwenStringUtils library. It included in projectarchive or you can install it separately:
downloadIt's nice lib with additional string functions like ASCII/Unicode conversion, formatting and parsing.
3. In example used
SysProcess library.
So you need to add in
/etc/CODESYSControl_User.cfg next lines:
[SysProcess]
Command=AllowAll
Keep in mind that you need to have write access rights:
sudo chmod 0666 /etc/CODESYSControl_User.cfg4. You need to set write access rights for
/visu directory:
sudo chmod 0666 /var/opt/codesys/PlcLogic/visu5. You can see qr-code in web-visu, but not in service-visu (CODESYS IDE-visu).