コード例 #1
0
    def __init__(self, host, port, name):
        """Initialize the sensor."""
        self._host = host
        self._port = port
        self._name = name
        self._state = None
        self._connection = None

        from rfk101py.rfk101py import rfk101py
        self._connection = rfk101py(self._host, self._port, self._callback)
コード例 #2
0
    def connect(self):
        """Connect to the reader."""

        self._connection = rfk101py(self._host, self._port, self._callback)
コード例 #3
0
 def connect(self):
     """Connect to the reader."""
     from rfk101py.rfk101py import rfk101py
     self._connection = rfk101py(self._host, self._port, self._callback)
コード例 #4
0
 def connect(self):
     """Connect to the reader."""
     from rfk101py.rfk101py import rfk101py
     self._connection = rfk101py(self._host, self._port, self._callback)