SerialSensor
-
class
compas_fab.sensors.SerialSensor(serial)[source] Bases:
objectBase class for all sensors with a serial interface.
- Parameters
serial (
serial.Serial) – Instance of the serial port used to communicate with the sensor.
Examples
>>> from serial import Serial # doctest: +SKIP >>> with Serial('COM5', 57600, timeout=1) as serial: # doctest: +SKIP ... sensor = SerialSensor(serial) # doctest: +SKIPMethods
__init__(serial)Initialize self.
-
__init__(serial)[source] Initialize self. See help(type(self)) for accurate signature.