DaemonΒΆ

Description

Daemon TCP server. The server will run indefinitely listening on the specified TCP (see the Server documentation). When a client connects and sends a message string, the message parser will call the appropriate method. The following commands are supported by the parser (options must be used with a double dash - -):

quit

Stops the daemon and cleans up database and serial port

status

TODO: Not implemented yet

tpg_256a

on/off/restart

Connects / disconnects / restarts the TPG 256A device

test

Performs a serial port test and returns the device firmware

config {file}

Reloads the default (or given) config file (logging is stopped)

gauge-info

Returns gauge type, status and latest value

single-readout

Performs a single read-out to the device (logging is stopped)

logging

start / stop

Launches or stops the separate device monitoring thread

terminal

Prints output to the terminal with info level

use-database

Enables data saving to a PostgreSQL database

Classes

Daemon

Base class of the daemon, derived from Server.