readTags returns tuple

This commit is contained in:
Patrick McDonagh
2016-01-24 14:53:01 -06:00
parent ef1d40c0f4
commit 9950e17873

View File

@@ -54,7 +54,7 @@ def main():
while True:
for r in tagList:
r["val"] = readTag(PLC_IP_ADDRESS, str(r['name']))
r["val"] = readTag(PLC_IP_ADDRESS, str(r['name']))[0]
print("{0} - {1}".format(r["name"], r["val"]))
if not r["val"] == r["lastVal"]:
with con: