This commit is contained in:
2025-01-11 14:50:58 +01:00
parent f6efdcc56e
commit 1049f13f78

View File

@ -33,10 +33,13 @@ s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# doesn't even have to be reachable
conn = False
while not conn:
try:
s.connect(('192.168.77.1', 1))
IP = s.getsockname()[0]
print(IP)
print(output)
conn = True
except:
time.sleep(5)
broker = 'mqtt.home.lan'