I'm using Raspberry Pi 3 B+ with a SIM7600X 4G HAT for SMS and mobile internet connection.
I want to use Paho MQTT library (it works fine), but it only works via Ethernet or Wifi.
How can I use the Paho MQTT library from python to use the SIM7600X HAT mobile internet connection?
I tried to use the SIM7600X AT+MQTT commands directly writing to the serial port for subscribing to a topic, and it works fine (so there is mobile internet through the 4G HAT), but after a while (1-2 hours) it loses connection all the time, and I can't release client and reconnect, that's why I thought I should use the Paho MQTT library, but it's not working without Ethernet or Wifi connection.