botletics / Botletics-SIM7000

Arduino library repo for the Botletics SIM7000 Shield
https://www.botletics.com/products/sim7000-shield
GNU General Public License v3.0
19 stars 9 forks source link

'Adafruit_FONA_LTE' does not name a type; did you mean 'Adafruit_FONA_3G' #11

Open aaron-hentschel opened 1 year ago

aaron-hentschel commented 1 year ago

I'm using a LilyGo T-SIM7000G and I'm having trouble compiling the AdafruitIO_MQTT_Demo example. I'm using the Arduino IDE and for troubleshooting purposes I am focusing on the following code:

`

define AIO_SERVER "io.adafruit.com"

define AIO_SERVERPORT 1883

define AIO_USERNAME "MyUsername"

define AIO_KEY "MyKey"

include

include

include

include

HardwareSerial modemSerial(1); Adafruit_FONA_LTE modem = Adafruit_FONA_LTE(); Adafruit_MQTT_FONA mqtt(&modem, AIO_SERVER, AIO_SERVERPORT, AIO_USERNAME, AIO_KEY);

void setup() { //.... }

void loop() { //.... } `

I understand that the Adafruit FONA library must not be installed when using BotleticsSIM7000.h however I receive the following error when I attempt to compile: demo.ino:10:\libraries\Adafruit_MQTT_Library/Adafruit_MQTT_FONA.h:26:10: fatal error: Adafruit_FONA.h: No such file or directory

and when the Adafruit FONA library is installed I get the following error: demo.ino:14:1: error: 'Adafruit_FONA_LTE' does not name a type; did you mean 'Adafruit_FONA_3G'