fixed bugs in piflow

This commit is contained in:
2020-03-31 12:41:44 -05:00
parent 9564016bc9
commit 0876a9f151
2 changed files with 4 additions and 2 deletions

View File

@@ -45,12 +45,14 @@ try:
isVFD = PERSIST['isVFD'] isVFD = PERSIST['isVFD']
except: except:
PERSIST['isVFD'] = False PERSIST['isVFD'] = False
isVFD = PERSIST['isVFD']
persistence.store(PERSIST) persistence.store(PERSIST)
try: try:
plc_ip = PERSIST['plc_ip'] plc_ip = PERSIST['plc_ip']
except: except:
PERSIST['plc_ip'] = '192.168.1.12' PERSIST['plc_ip'] = '192.168.1.12'
plc_ip = PERSIST['plc_ip']
persistence.store(PERSIST) persistence.store(PERSIST)
from Tags import tags from Tags import tags
@@ -69,7 +71,7 @@ class start(threading.Thread, deviceBase):
mqtt=mqtt, Nodes=Nodes) mqtt=mqtt, Nodes=Nodes)
self.daemon = True self.daemon = True
self.version = "22" self.version = "23"
self.finished = threading.Event() self.finished = threading.Event()
self.force_send = False self.force_send = False
self.public_ip_address = "" self.public_ip_address = ""

View File

@@ -3,7 +3,7 @@
"driverFileName":"PiFlow.py", "driverFileName":"PiFlow.py",
"deviceName":"piflow", "deviceName":"piflow",
"driverId":"0280", "driverId":"0280",
"releaseVersion":"22", "releaseVersion":"23",
"files": { "files": {
"file1":"PiFlow.py", "file1":"PiFlow.py",
"file2":"Channel.py", "file2":"Channel.py",