Skip to content

Commit 679bf5b

Browse files
authored
Update opcuadb.py
1 parent b9b8397 commit 679bf5b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

opcuadb.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
from opcua import Client
66
from opcua.ua.uatypes import _split_list
77

8-
logging.basicConfig(filename="opcuadb.log",
9-
format='%(asctime)s %(message)s',
10-
filemode='w')
8+
logging.basicConfig(filename="opcuadb.log", format='%(asctime)s %(message)s', filemode='w')
119
logger=logging.getLogger()
1210
logger.setLevel(logging.INFO)
1311

@@ -28,7 +26,7 @@
2826
opcurl = 'opc.tcp://192.168.40.101:4840/OPC-SERVER/\n'
2927
client = Client(opcurl)
3028
client.connect()
31-
print('Lettura dati', opcrobot,'\n','Indirizzo: ',opcurl,'\n')
29+
print('Read data', opcrobot,'\n','Opc Url: ',opcurl,'\n')
3230

3331
while True:
3432
SysAnno = client.get_node("ns=2;s=Local HMI.Tags.Sys-Anno")

0 commit comments

Comments
 (0)