ArduinoBoard¶
Description
-
class
arduino_temperature_sensors.ArduinoBoard.ArduinoBoard(serial_port: str = None, baud_rate: int = None, connect: bool = False, timeout: float = None, config_file: str = None)[source]¶ Driver implementation for the ArduinoBoard.
Attributes
Acknowledge, chr(6), \x06
Carriage return, chr(13), \r
Enquiry, chr(5), \x05
End text (Ctrl-c), chr(3), \x03
Line feed, chr(10), \n
Negative acknowledge, chr(21), \x15
Baud rate for serial communication.
Channel information, loaded from the config file.
Device configuration file
Status flag.
Maximum number of channels
Serial port handler.
Physical address of the device file.
Time-out for serial connection error.
Waiting time before logging data to the database.
Methods
Initializes the
ArduinoBoardobject.Clears sensor data.
Loads the Arduino Temperature Sensors configuration from a file.
Connects to the Arduino device.
Closes the connection to the Arduino Temperature Sensors.
Cleans the input buffer.
Reads data from the device buffer.