in EvseMode show the host name, to support analysis of issue #1

This commit is contained in:
uhi22 2023-05-20 09:56:24 +02:00
parent ab1ef6c1e7
commit 518a0c60a2

View file

@ -166,6 +166,7 @@ class pyPlcTcpServerSocket():
self.callbackStateNotification(1) # inform the higher level state machines, that TCP is listening
self.addToTrace("pyPlcTcpSocket listening on port " + str(self.tcpPort))
hostname=socket.gethostname()
self.addToTrace(hostname)
IPAddr=socket.gethostbyname(hostname)
addressInfo = socket.getaddrinfo(hostname, None, socket.AF_INET6)
#print("Your Computer Name is:"+hostname)