Daemon.__init__¶
-
Daemon.__init__(config_file: str = None, pid_file_name: str = None, host: str = None, port: int = None, device_config_file: str = None)[source]¶ Initializes the
Daemonobject. Thedeviceconstructor is called: serial connection is established and hardware information is retrieved from the controller.- Parameters
- Raises
configparser.Error – Configuration file error
LockError – The PID file could not be locked (see parent class
Server).OSError – Socket errors (see parent class
Server).SerialException – The connection to the
devicehas failedIOError – Communication error, probably message misspelt.
StateError –
devicewas in the wrong state, e.g. already ON.