Botletics-SIM7000 icon indicating copy to clipboard operation
Botletics-SIM7000 copied to clipboard

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

Open aaron-hentschel opened this issue 1 year ago • 0 comments

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 <BotleticsSIM7000.h> #include <Adafruit_MQTT.h> #include <Adafruit_MQTT_FONA.h> #include <HardwareSerial.h>

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'

aaron-hentschel avatar Mar 16 '23 07:03 aaron-hentschel