diff --git a/python/tagserver_SQLite.py b/python/tagserver_SQLite.py index 5bdc361..15a4cfc 100644 --- a/python/tagserver_SQLite.py +++ b/python/tagserver_SQLite.py @@ -107,10 +107,10 @@ def main(): for r in tagList: r['val'] = 0 if configProperties['plc_type'] == "u800": - u800.readMicroTag(configProperties['PLC_IP_ADDRESS'], str(r['name']))[0] + r["val"] = u800.readMicroTag(configProperties['PLC_IP_ADDRESS'], str(r['name']))[0] else: r["val"] = readTag(configProperties['PLC_IP_ADDRESS'], str(r['name']))[0] - + print("{0} - {1}".format(r["name"], r["val"])) if (not configProperties['save_all'] and not r["val"] == r["lastVal"]) or configProperties['save_all']: with con: