Browse Source

Device file headers.

pyserial_fix
Scott Petersen 7 years ago
parent
commit
58d99fa070
4 changed files with 37 additions and 0 deletions
  1. +8
    -0
      alarmdecoder/devices/base_device.py
  2. +10
    -0
      alarmdecoder/devices/serial_device.py
  3. +11
    -0
      alarmdecoder/devices/socket_device.py
  4. +8
    -0
      alarmdecoder/devices/usb_device.py

+ 8
- 0
alarmdecoder/devices/base_device.py View File

@@ -1,3 +1,11 @@
"""
This module contains the base device type for the `AlarmDecoder`_ (AD2) family.

.. _AlarmDecoder: http://www.alarmdecoder.com

.. moduleauthor:: Scott Petersen <scott@nutech.com>
"""

import threading import threading


from ..util import CommError, TimeoutError, InvalidMessageError from ..util import CommError, TimeoutError, InvalidMessageError


+ 10
- 0
alarmdecoder/devices/serial_device.py View File

@@ -1,3 +1,13 @@
"""
This module contains the :py:class:`SerialDevice` interface for the `AD2USB`_, `AD2SERIAL`_ or `AD2PI`_.

.. _AD2USB: http://www.alarmdecoder.com
.. _AD2SERIAL: http://www.alarmdecoder.com
.. _AD2PI: http://www.alarmdecoder.com

.. moduleauthor:: Scott Petersen <scott@nutech.com>
"""

import threading import threading
import serial import serial
import serial.tools.list_ports import serial.tools.list_ports


+ 11
- 0
alarmdecoder/devices/socket_device.py View File

@@ -1,3 +1,14 @@
"""
This module contains :py:class:`SocketDevice` interface for `AlarmDecoder`_ devices
that are exposed through `ser2sock`_ or another IP to serial solution. Also supports
SSL if using `ser2sock`_.

.. _ser2sock: http://github.com/nutechsoftware/ser2sock
.. _AlarmDecoder: http://www.alarmdecoder.com

.. moduleauthor:: Scott Petersen <scott@nutech.com>
"""

import threading import threading
import socket import socket
import select import select


+ 8
- 0
alarmdecoder/devices/usb_device.py View File

@@ -1,3 +1,11 @@
"""
This module contains the :py:class:`USBDevice` interface for the `AD2USB`_.

.. _AD2USB: http://www.alarmdecoder.com

.. moduleauthor:: Scott Petersen <scott@nutech.com>
"""

import time import time
import threading import threading
from .base_device import Device from .base_device import Device


Loading…
Cancel
Save