python-selve-new 2.0.55__tar.gz → 2.0.56__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/PKG-INFO +1 -1
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/python_selve_new.egg-info/PKG-INFO +1 -1
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/__init__.py +9 -9
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/setup.py +1 -1
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/LICENSE +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/README.md +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/python_selve_new.egg-info/SOURCES.txt +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/python_selve_new.egg-info/dependency_links.txt +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/python_selve_new.egg-info/requires.txt +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/python_selve_new.egg-info/top_level.txt +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/__init__.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/command.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/device.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/event.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/group.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/iveo.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/param.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/senSim.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/sender.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/sensor.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/commands/service.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/device.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/gateway.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/group.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/iveo.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/senSim.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/sender.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/sensor.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/util/__init__.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/util/errors.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/selve/util/protocol.py +0 -0
- {python-selve-new-2.0.55 → python-selve-new-2.0.56}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-selve-new
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.56
|
|
4
4
|
Summary: Python library for interfacing with selve devices using the USB-RF controller. Written completely new.
|
|
5
5
|
Home-page: https://github.com/Kannix2005/python-selve-new
|
|
6
6
|
Author: Stefan Altheimer
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-selve-new
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.56
|
|
4
4
|
Summary: Python library for interfacing with selve devices using the USB-RF controller. Written completely new.
|
|
5
5
|
Home-page: https://github.com/Kannix2005/python-selve-new
|
|
6
6
|
Author: Stefan Altheimer
|
|
@@ -87,18 +87,18 @@ class Selve:
|
|
|
87
87
|
self.discover()
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
def _worker(self, selve: Selve
|
|
90
|
+
def _worker(self, selve: Selve):
|
|
91
91
|
# Infinite loop to collect all incoming data
|
|
92
|
-
|
|
92
|
+
selve._LOGGER.debug("Worker started")
|
|
93
93
|
try:
|
|
94
94
|
while True:
|
|
95
95
|
if not selve._pauseWorker:
|
|
96
96
|
selve._pauseWorkerEvent.clear()
|
|
97
97
|
if not selve._pauseReader:
|
|
98
98
|
selve._pauseReaderEvent.clear()
|
|
99
|
-
with _readLock
|
|
100
|
-
if not
|
|
101
|
-
|
|
99
|
+
with selve._readLock:
|
|
100
|
+
if not selve._serial.is_open:
|
|
101
|
+
selve._serial.open()
|
|
102
102
|
if selve._serial.in_waiting > 0:
|
|
103
103
|
msg = ""
|
|
104
104
|
while True:
|
|
@@ -122,9 +122,9 @@ class Selve:
|
|
|
122
122
|
commandstr = data.serializeToXML()
|
|
123
123
|
selve._LOGGER.debug('Gateway writing: ' + str(commandstr))
|
|
124
124
|
try:
|
|
125
|
-
with _writeLock
|
|
126
|
-
if not
|
|
127
|
-
|
|
125
|
+
with selve._writeLock:
|
|
126
|
+
if not selve._serial.is_open:
|
|
127
|
+
selve._serial.open()
|
|
128
128
|
selve._serial.write(commandstr)
|
|
129
129
|
selve._serial.flush()
|
|
130
130
|
except Exception as e:
|
|
@@ -217,7 +217,7 @@ class Selve:
|
|
|
217
217
|
self._pauseWriter = False
|
|
218
218
|
self._pauseWorker = False
|
|
219
219
|
self._stopThread = False
|
|
220
|
-
self.workerTask = threading.Thread(target=self._worker, args=(self,
|
|
220
|
+
self.workerTask = threading.Thread(target=self._worker, args=(self, self._writeLock, self._readLock), daemon=True)
|
|
221
221
|
self.workerTask.start()
|
|
222
222
|
|
|
223
223
|
def stopWorker(self):
|
|
@@ -15,7 +15,7 @@ with open(path.join(here, 'README.md'), encoding='utf-8') as f:
|
|
|
15
15
|
setup(
|
|
16
16
|
|
|
17
17
|
name='python-selve-new', # Required
|
|
18
|
-
version='2.0.
|
|
18
|
+
version='2.0.56', # Required
|
|
19
19
|
description='Python library for interfacing with selve devices using the USB-RF controller. Written completely new.', # Required
|
|
20
20
|
long_description=long_description, # Optional
|
|
21
21
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-selve-new-2.0.55 → python-selve-new-2.0.56}/python_selve_new.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|