Version 5.4.x
GPIO conditions are now called signals
GPIO conditions have been renamed to signals, see Input/output. The old method names still work, but are deprecated:
| Deprecated | Replacement |
|---|---|
| getGpioCondition | getGpioSignal |
| listGpioConditions | listGpioSignals |
| listUserGpioConditions | listUserGpioSignals |
| listWritableGpioConditions | listWritableGpioSignals |
| removeUserGpioCondition | removeUserGpioSignal |
| setGpioConditions | setGpioSignals |
| waitForGpioCondition | waitForGpioSignal |
- The constant signals
alwaysandneverare renamed toalways_activeandnever_active. The old names still work, but are no longer listed, and are reserved as names of user expressions. - Each printer has a writable
printer.<printerID>.maintenance_modesignal, see Built-in signals. - Every writable signal has the actions
signal.<signal>.activateandsignal.<signal>.deactivate, see Actions. They replace the actionsprinter.<printerID>.enable_maintenanceandprinter.<printerID>.disable_maintenance.
New requests
- listGpioActions lists the GPIO actions.
- getLabelPixmap renders a label with a printer's color channels. It is also available as a REST endpoint.
- Statistics counters: listStats, getStat, and waitForStat.
Changed requests
- Print jobs accept a
trigger window with
minTriggerPos,maxTriggerPos,minTriggerDistance, andmaxTriggerDistance. - trigger accepts
positionMeters, and waitForTrigger and getSpeedInfo returnpositionMeters, the position in meters. - setFixedSpeed no longer switches the speed source to fixed speed mode.
Text Line protocol
- Text Line protocol actions have a pattern, a regular expression that picks the part of the line to use, see Action fields.
- Actions accept a minimum and a maximum trigger distance, which form a trigger window.
- Actions can use a snapshot of the label, taken when the line is received.
Label objects
- New StaticGraymap object for embedded grayscale images.
- PolyLine accepts a
fillColor.