I am using an Arduino ESP8266 along with Adafruit FONA 808,
After compiling the program to the ESP8266 board (NodeMCU 1.0), this is what I get on the Serial Monitor of Arduino IDE -
Using similar hardware, I got the save "error" message when trying to run the FONA_test example.
After stumbling on someone else's code for running the FONA, I commented out "while (!serial);"
as in the FONA_test example:
void setup() {
//while (!Serial);
Serial.begin(115200);
Serial.println(F("FONA basic test"));
Serial.println(F("Initializing....(May take 3 seconds)"));
etc., etc.
I don't pretend to understand what the while(!serial); was doing but the FONA_test example works fine now.
I don't pretend to understand what the while(!serial); was doing
It was waiting for the Serial instance to be ready. In all the examples I've seen the Arduino team publish, there is ALWAYS a comment that that code is needed only on the Leonardo and Micro (or other Arduinos and Arduino wannabies that use the 32U4 chip).
Why anyone would remove only the comment is a mystery.
Hi, I came across with this problem with the project that I am developing. I have tried removing the "while(!Serial)" code but the issue still persists. I wonder which pins you used to interface the ESP8266 and the FONA808?
I am using ESP8266 because I need to connect to the internet and it is the only available board I have. I was hoping that there is a workaround to save expenses. After a lot of trial and errors I have finally gave up and used arduino on fona. What I did was send data to arduino from ESP8266 using serial communication and let arduino handle the communication to the FONA.