Skip to main content

Examples

Without parameter

To get the printer's version information, send the following followed by a line break:

getVersion

Response:

OK {"buildDate":"2024-09-03","hash":"bc502b158","version":"v3.0.13"}

With parameter

To set the values of two variables:

setVariables {"VAR1": "My first value", "VAR2": "My second value"}

Response:

OK null

Error response

Trying to get a variable that doesn't exist:

getVariable "DoesNotExist"

Response:

REQUEST_FAILED "Cannot find variable 'DoesNotExist'"