Skip to main content

QRCode

A module which allows you to generate QR codes.


Functions

generate

sm.scrapcomputers.qrcode.generate( string, errorCorrectionLevel )

Generates a QR code from the input string with varying version based on data size (including ECC level).

Arguments:

  • string [ string ] The data to generate the QR code from.
  • errorCorrectionLevel [ integer ] The error correction level of the QR code (ranges from 1 - 4 and corresponds to the standard ECC levels of: L, M, Q, H).

Returns: