adafruit / Adafruit_FONA

Arduino library for the Adafruit FONA
https://www.adafruit.com/products/1946
211 stars 237 forks source link

Connecting to HiveMQ MQTT Broker #133

Open Alfredfoby opened 2 years ago

Alfredfoby commented 2 years ago

I am using a mega and Sim 7000A. I am trying to connect my device to a different MQTT broker than Adafruit IO which is HiveMQ so I can build a web application out of it. The issue I am having is that i cannot connect to the server using the libraries provided for some reason. I have tried the MQTT Demo sketch and it still gives errors when I call different methods for example

if (! fona.MQTT_connect(true)) { Serial.println(F("Failed to connect to broker!")); }

That would give me an error saying that the method basically does not exist in that class. Please point me in the right direction as everything looks fine except methods don't work.

Thank you