Skip to main content

setGpioSignals v5.4

Before v5.4, this method was called setGpioConditions.

Set the state of one or more writable GPIO signals. A signal that does not yet exist is created as a user signal; an existing signal must be writable.

Writing a built-in signal asks its owner to change state, and the signal follows once the change has taken effect. For example, setting printer.<printerID>.maintenance_mode enables or disables maintenance mode.

Parameter​

An object where the keys are signal names and the values are their boolean state.

Return value​

null

Example​

setGpioSignals {"MySignal": true}