Rewrite to reconnect handler v2
This commit is contained in:
@@ -9,20 +9,16 @@ HOST_NAME = socket.gethostname()
|
||||
CLIENT_APP_URI = f"urn:{HOST_NAME}:client:hmi"
|
||||
|
||||
# OPC UA settings
|
||||
OPC_UA_URL = "opc.tcp://192.168.42.1:4840"
|
||||
OPC_UA_USER = "hmi"
|
||||
OPC_UA_PW = "hmi"
|
||||
#OPC_UA_URL = "opc.tcp://192.168.56.101:4840"
|
||||
#OPC_UA_USER = "twincat"
|
||||
#OPC_UA_PW = "twincat"
|
||||
OPC_UA_URL = "opc.tcp://192.168.0.148:4840"
|
||||
OPC_UA_USER = "Administrator"
|
||||
OPC_UA_PW = "11sep8819"
|
||||
NAMESPACE = "urn:BeckhoffAutomation:Ua:PLC1"
|
||||
NS_IDX = 0
|
||||
|
||||
EVENT_LOGGER_NODE_ID = "ns=8;s=eventlogger"
|
||||
TC_EVENT_DATATYPE_NODE_ID = "ns=5;i=4000"
|
||||
|
||||
CHECK_INTERVAL = 1.0 # seconds
|
||||
RECONNECT_INTERVAL = 5.0 # seconds
|
||||
|
||||
# Publishing interval to the clients (rate limiting)
|
||||
PUBLISH_INTERVAL = 0.1 # 200 ms
|
||||
|
||||
# Path to the nodes list
|
||||
NODE_IDS_FILE_PATH = Path(CERT_BASE / f"nodeList.txt")
|
||||
PUBLISH_INTERVAL = 0.2 # 200 ms
|
||||
Reference in New Issue
Block a user