Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aaron-hentschel opened this issue Mar 16, 2023 · 0 comments

Comments

@aaron-hentschel
Copy link

aaron-hentschel commented Mar 16, 2023

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant