Skip to main content

Printer

Sensor configuration

To set the configuration navigate yourself to DEVICE >> Device Properties >> SET >> SET SENSOR CONFIGURATION

{
"services": [
{
"uid": "printer",
"type": "PRINTER",
"connection": {
"port": "1",
"baudrate": 115200
}
}
]
}

How to use it from content

Content

  1. Create a text widget and fill it with PRINT text

  2. Navigate yourself into Properties >> Widget >> Other >> Edit touch events

  3. Click on the ADD NEW button, then choose the Static sensor or device event in the Action type: field, then Other command

  4. As a Value you can create a command in JSON format like this:

    • Choose one of the value between the | symbols to determine the format of your print result

img.png

Command structure

{
"command": "Print",
"options": {},
"data": [
{
"text": "EXAMPLE TEXT1",
"font": "SMALL_FONT" | "BIG_FONT" | "LARGE_FONT",
"alignment": "START" | "CENTER" | "END",
"style": "DEFAULT" | "BOLD" | "UNDERLINE" | "ITALIC",
"brakeLine": true | false
},
{
"content": "www.wallboard.info",
"barcodeType": "QR" | "LINEAR",
"alignment": "CENTER" | "START" | "END",
"size": 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
},
{
"action": "LINE_BREAK" | "FEED_SMALL" | "FEED_MEDIUM" | "FEED_BIG" | "HALF_CUT" | "FULL_CUT"
}
]
}

Save it, then save the content.

Assign it to the kiosk, then touch the PRINT on the screen.

Downloadable content