-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi,
I had this issue and would like some help
./udp2mqtt.py
WARNING 2021-11-10 16:12:52,944 __main__ open 41 : Opening UDP port 20001
WARNING 2021-11-10 16:12:52,945 __main__ open 41 : Opening UDP port 10001
Traceback (most recent call last):
File "./udp2mqtt.py", line 219, in <module>
main()
File "./udp2mqtt.py", line 201, in main
mi.start() # needs to be called last because the mqtt loop is started in here
File "./udp2mqtt.py", line 154, in start
self.__connect()
File "./udp2mqtt.py", line 78, in __connect
self.__client.connect(self.__broker_ip, self.__broker_port)
File "/home/youssef/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 914, in connect
return self.reconnect()
File "/home/youssef/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 1044, in reconnect
sock = self._create_socket_connection()
File "/home/youssef/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python2.7/socket.py", line 557, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -3] Temporary failure in name resolution
I replaced url by the rockblock one (url = https://core.rock7.com/rockblock/MT:80)
And for hostname : I entered the name of the device on which relay.py is running
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels