Good morning friend, firstly thanks for the support, when I consulted your link I did some tests and had this error, the mqtt link seems to be offline and does not respond to ping, I currently use nam1.cloud.thethings.network
Error Assign callbacks
Connect
Traceback (most recent call last):
File "c:\Users\0100367\Documents\dev-python\app.py", line 122, in <module>
mqttc.connect(theRegion.lower() + ".cloud.thethings.network", 8883, 60)
File "C:\Users\0100367\Documents\dev-python\app\Lib\site-packages\paho\mqtt\client.py", line 1435, in
connect
return self.reconnect()
^^^^^^^^^^^^^^^^
File "C:\Users\0100367\Documents\dev-python\app\Lib\site-packages\paho\mqtt\client.py", line 1598, in
reconnect
self._sock = self._create_socket()
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\0100367\Documents\dev-python\app\Lib\site-packages\paho\mqtt\client.py", line 4609, in
_create_socket
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\0100367\Documents\dev-python\app\Lib\site-packages\paho\mqtt\client.py", line 4640, in
_create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\0100367\AppData\Local\Programs\Python\Python312-32\Lib\socket.py", line 828, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\0100367\AppData\Local\Programs\Python\Python312-32\Lib\socket.py", line 963, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno 11001] getaddrinfo failed