Daemon

Description

class arduino_temperature_sensors.Daemon.Daemon(config_file: str = None, pid_file_name: str = None, host: str = None, port: int = None, autostart: bool = False, device_config_file: str = None, database_config_file: str = None)[source]

Base class of the daemon, derived from Server. The daemon holds pointers to the device driver and the monitor thread, and communicates with them upon message reception.

Attributes

Daemon.device

Device handler.

Daemon.monitor

Monitor thread.

Methods

Daemon.__init__

Initializes the Daemon object.

Daemon.arduino

Modifies or checks the status of the Arduino Temperature Sensors device.

Daemon.logging

Manages the logging thread.

Daemon.quit

Stops the daemon, called with message ‘quit’.

Daemon.status

TODO

Daemon.update_parser

Sets up the message parser.