From ef1d40c0f4e4ed381cda1a7bf4558673a57dce4a Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Sun, 24 Jan 2016 14:51:51 -0600 Subject: [PATCH] pycomm can't read unicode string tag names --- python/tagserver_SQLite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tagserver_SQLite.py b/python/tagserver_SQLite.py index 2c092df..828a8f9 100644 --- a/python/tagserver_SQLite.py +++ b/python/tagserver_SQLite.py @@ -54,7 +54,7 @@ def main(): while True: for r in tagList: - r["val"] = readTag(PLC_IP_ADDRESS, r['name']) + r["val"] = readTag(PLC_IP_ADDRESS, str(r['name'])) print("{0} - {1}".format(r["name"], r["val"])) if not r["val"] == r["lastVal"]: with con: