mirror of
https://github.com/naruxde/revpipyload.git
synced 2025-11-08 15:13:52 +01:00
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:
@@ -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))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user