string getQRCommand(string text, byte correctionLevel, byte model, byte cellSize)
This function can be used to return a QR command.
Parameters
Name | Description |
text | Text content of the PDF417. |
correctionLevel | Correction level for the QR Code (value ranges from 0 to 3). See section 3-122 of the STAR Line Mode Command Specifications (Rev 1.12 or later). |
model | Model to use when printing the QR Code (value can be either 1 or 2). See section 3-122 of the STAR Line Mode Command Specifications (Rev 1.12 or later). |
cellSize | Cell size of the QR Code (value ranges from 1 to 8; a value of 2 or less is recommended). |
Return
A JSON byte array to use as a command.