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
-
Create a text widget and fill it with
PRINT
text -
Navigate yourself into Properties >> Widget >> Other >> Edit touch events
-
Click on the
ADD NEW
button, then choose theStatic sensor or device event
in theAction type:
field, thenOther command
-
As a
Value
you can create a command inJSON
format like this:- Choose one of the value between the
|
symbols to determine the format of your print result
- Choose one of the value between the
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
Try it out!