Bugfix: Write MQTT values without enabled send_on_event

Since RevPiModIO2 2.5.6 we have to use the `.writeprocimg()` function to write IO values with enabled `shared_procimg`.

close #6
This commit is contained in:
2022-03-13 08:33:07 +01:00
parent 395574810f
commit 63d8d73d1a
2 changed files with 4 additions and 1 deletions

View File

@@ -303,6 +303,9 @@ class MqttServer(Thread):
# Write Value to RevPi # Write Value to RevPi
try: try:
io.value = value io.value = value
# Write data without autorefresh
if not self._send_events:
io._parentdevice.writeprocimg()
except Exception: except Exception:
proginit.logger.error("could not write '{0}' to Output '{1}'".format(value, ioname)) proginit.logger.error("could not write '{0}' to Output '{1}'".format(value, ioname))

View File

@@ -27,7 +27,7 @@ setup(
license="LGPLv3", license="LGPLv3",
name="revpipyload", name="revpipyload",
version="0.9.6b", version="0.9.6c",
scripts=[ scripts=[
"data/revpipyload", "data/revpipyload",