Forums

What should be the use of MQTT-CLIENT on pythonanywhere.com?(paho-mqtt or flask-mqtt)

I'm new at pythonanywhere.com. I want to do IOT ugging with RASPERRY-pi. I use FLASK-MQTT and PAHO-MQTT for this. My pythonanywhere account is $ 5 per month. After installing PAHO-MQTT module,

 File" .virtualenvs / my-virtualenv / lib / python3.6 / site-packages / paho / mqtt / client.py ", line 937, in connect
    return self.reconnect ()
  File ".virtualenvs / my-virtualenv / lib / python3.6 / site-packages / paho / mqtt / client.py", line 1071, in reconnect
    sock = self._create_socket_connection ()
  File ".virtualenvs / my-virtualenv / lib / python3.6 / site-packages / paho / mqtt / client.py", line 3522, in _create_socket_connection
    return socket.create_connection (addr, source_address = source, timeout = self._keepalive)
  File "/usr/lib/python3.8/socket.py", line 807, in create_connection
    raise err
  File "/usr/lib/python3.8/socket.py", line 796, in create_connection
    sock.connect (sa)

I am encountering this error. Is anyone able to help? Thanks...

[edit by admin: formatting]

What address are you trying to connect to with your MQTT client?