gpio_server executable

Executable script for operating a GPIO server as a daemon.

Arguments

  • --signaldebug, --buttondebug, irdebug flags: Write debug output from the condigured signal, button or IR listeners, respectively, to the log file.

  • --sockdebug: Write debug output from the GPIO server’s Unix socket to the log file, i.e. requests and responses.

  • -n | --pihost and -p``| ``piport: When using a pigpiod daemon as a backend, its host address and TCP port, respectively.

  • -u | ‘picouid`: When using picossa as a backend, the UID of the pico to connect to (20 digits).

  • --interval: When using picossa as a backend, the interval in seconds for re-checking the connection to the Pico device.

  • --uartconfig: Absolute path or file name (to be auto-detected) for the UART configuration, if UART channels shall be opened.

  • --signalconfig, --buttonconfig, irconfig: Absolute path or file name (to be auto-detected) for the signal, button or IR listener configuration file, respectively.

  • -g | --group: Name of the group for which the GPIO server’s Unix socket shall be accessible.

  • Required positional argument: Absolute path for the Unix socket to be created by the GPIO server.

Additionally, the standard arguments from ctlbase.shell.ServiceControlShell.addStandardArgs() are accepted.

Classes

class gpiosvr.bin.gpio_server.UnixSocketServer(taskMonitor, requestRxSocketPath, pigsProcessor, group=None, requestBufferSize=1536, maxErrorCount=5, msgBuffer=None)