RevPiModIO2 2.1.6 muss verwendet werden wegen Device-Iterator

Watch mode Daten schneller zusammenfassen
This commit is contained in:
2018-06-27 12:16:15 +02:00
parent e8c631d672
commit b3b7a8f92f
5 changed files with 8 additions and 8 deletions

View File

@@ -143,7 +143,7 @@ class ProcimgServer():
"""Liefert Prozessabbild an Client.
@return Binary() bytes or None"""
if self.rpi.readprocimg() and self.rpi.syncoutputs():
bytebuff = b''
bytebuff = bytearray()
for dev in self.rpi.device:
bytebuff += bytes(dev)
return Binary(bytebuff)

View File

@@ -50,7 +50,7 @@ from time import asctime
from xmlrpc.client import Binary
from xrpcserver import SaveXMLRPCServer
pyloadversion = "0.6.6"
pyloadversion = "0.6.7"
class RevPiPyLoad():
@@ -319,7 +319,7 @@ class RevPiPyLoad():
self.xml_ps = None
proginit.logger.warning(
"can not load revpimodio2 module. maybe its not installed "
"or an old version (required at least 2.0.5). if you "
"or an old version (required at least 2.1.6). if you "
"like to use the process monitor feature, update/install "
"revpimodio2: 'apt-get install python3-revpimodio2'"
)