FONA 808 compiling error

I have a FONA 808. I'm trying create a simple GSM/GPS tracker that will send me coordinates every time I send it an SMS.

I found a simple tutorial using all of the exact same components that I have (Arduino UNO, Adafruit FONA 808 shield, LiPo battery, GPS antenna and GSM antenna). This is the tutorial:CARDUINO (Vehicle Tracking with the HyperDuino) - Hackster.io

The program in the tutorial (below) fails to compile. The error that the IDE is warning me about is on line 86. It expected a ")" before FONA_PREF_SMS_STORAGE. This is contained within an sscanf function. I'm completely unfamiliar with sscanf and I'm having trouble wrapping my brain around it and why I'm getting the error. The ")" clearly does not belong where it is being suggested. I think the error is with some other portion of the syntax.

Any help is appreciated!

/*Below is the working code for the FONA Shield with the Hyperduino
 * I scrapped different parts of the code from many different projects
 * This means if there are any comments that 
 * Most of the code and actions can be seen in the Serial Monitor
 * BEFORE YOU DO ANYTHING AND UPLOAD YOU MUST SCROLL TO THE BOTTOM AND PUT YOUR PHONE NUMBER IN THE DESIGNATED SPOT IN ORDER TO GET IT WORKING
 * I plan on in the future adding a few lines of code that will enable it to send a text if it is unable to send the GPS location so stay tuned for that.
*/

#include "Adafruit_FONA.h"
#define FONA_RX 2
#define FONA_TX 3
#define FONA_RST 4

// this is a large buffer for replies
char replybuffer[255];
#include <SoftwareSerial.h>
SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);
SoftwareSerial *fonaSerial = &fonaSS;

Adafruit_FONA fona = Adafruit_FONA(FONA_RST);

uint8_t readline(char *buff, uint8_t maxbuff, uint16_t timeout = 0);

uint8_t type;

void setup() {
  while (!Serial);

  Serial.begin(115200);
  Serial.println(F("FONA basic test"));
  Serial.println(F("Initializing....(May take 3 seconds)")); 

  fonaSerial->begin(4800);
  if (! fona.begin(*fonaSerial)) {
    Serial.println(F("Couldn't find FONA")); //This should only display if the FONA has bad soldering. 
    while (1);
  }
  type = fona.type();
  Serial.println(F("FONA is OK")); 
  Serial.print(F("Found "));
  switch (type) {
    case FONA800L:
      Serial.println(F("FONA 800L")); break;
    case FONA800H:
      Serial.println(F("FONA 800H")); break;
    case FONA808_V1:
      Serial.println(F("FONA 808 (v1)")); break;
    case FONA808_V2:
      Serial.println(F("FONA 808 (v2)")); break; //This is the one I am using. 
    case FONA3G_A:
      Serial.println(F("FONA 3G (American)")); break;
    case FONA3G_E:
      Serial.println(F("FONA 3G (European)")); break;
    default: 
      Serial.println(F("???")); break; //If this prints you will have a problem with everything else working. 
  }
  
  // Print module IMEI number. This is not important I just like to keep it there. 
  char imei[16] = {0}; // MUST use a 16 character buffer for IMEI!
  uint8_t imeiLen = fona.getIMEI(imei);
  if (imeiLen > 0) {
    Serial.print("Module IMEI: "); Serial.println(imei);
  }
  Serial.println(F("Enabling GPS..."));
  fona.enableGPS(true);
  delay(4000);
}
  char fonaNotificationBuffer[64];          //for notifications from the FONA
  char smsBuffer[250];
void loop() {
  char* bufPtr = fonaNotificationBuffer;

    if (fona.available())      //any data available from the FONA?
  {
    int slot = 0;            //this will be the slot number of the SMS 
    int charCount = 0;
    //Read the notification into fonaInBuffer
    do  {
      *bufPtr = fona.read();
      Serial.write(*bufPtr);
      delay(1);
    } while ((*bufPtr++ != '\n') && (fona.available()) && (++charCount < (sizeof(fonaNotificationBuffer)-1)));

    *bufPtr = 0;
       if (1 == sscanf(fonaNotificationBuffer, "+CMTI: " FONA_PREF_SMS_STORAGE ",%d", &slot)) {
      Serial.print("slot: "); Serial.println(slot);
      
      char callerIDbuffer[32];  //we'll store the SMS sender number in here
      
      // Retrieve SMS sender address/phone number.
      if (! fona.getSMSSender(slot, callerIDbuffer, 31)) {
        Serial.println("Didn't find SMS message in slot!");
      }
      Serial.print(F("FROM: ")); Serial.println(callerIDbuffer);

        // Retrieve SMS value.
        uint16_t smslen;
        if (fona.readSMS(slot, smsBuffer, 250, &smslen)) { // pass in buffer and max len!
          Serial.println(smsBuffer);
        }
  float latitude, longitude;//variables to hold initial GPS readings
  boolean gps_success = fona.getGPS(&latitude, &longitude);
  if (gps_success) {
    Serial.print("GPS lat:");
    Serial.println(latitude, 6);
    Serial.print("GPS long:");
    Serial.println(longitude, 6); 
          //send sms
      char message[141];  
      char LAT1[10];//string of lat and long unparsed & overflowing bound
      char LAT[10];
      char LONG[10];
      dtostrf(latitude, 5, 4, LAT1); //gathering GPS data in a format that can be sent
      dtostrf(longitude, 5, 4, LONG);
      
      //initialize desired array from unparsed array
      for(int i = 0; i < 9; i++) {
      LAT[i] = LAT1[i];
      }
      LAT[9] = '\0';//truncate array at last desired value
      sprintf(message, "Sending GPS Cords Now https://www.google.com/maps?q=%s,%s", LAT, LONG); //The final message that will be sent by the FONA
      
      Serial.println(LAT);Serial.println(LAT1);Serial.println(LONG);
      Serial.println(message) ;    //prints the message in the serial monitor before sending
 
      char sendto[13] = "PUT YOUR PHONE NUMBER HERE"; //put the desired destination phone number for sms here.
      
      fona.sendSMS(sendto, message) ; //This will finally send the message. 
  }
       }
  }
}

When you encounter an error you'll see a button on the right side of the orange bar in the Arduino IDE "Copy error messages" (or the icon that looks like two pieces of paper in the Arduino Web Editor). Click that button. Paste the error in a reply here using code tags.

If the text exceeds the forum's 9000 character limit, save it to a .txt file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link.

Here's the error. But like I said, I don't think the parenthesis is the correct solution. It must be something else.

Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"

/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_modified_sketch_990163/sketch_mar30a.ino: In function 'void loop()':
sketch_mar30a:85: error: expected ')' before 'FONA_PREF_SMS_STORAGE'
        if (1 == sscanf(fonaNotificationBuffer, "+CMTI: " FONA_PREF_SMS_STORAGE ",%d", &slot)) {
                                                          ^
exit status 1
expected ')' before 'FONA_PREF_SMS_STORAGE'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Please do this:

  • (In the Arduino IDE) click File > Preferences
  • Check the box next to "Show verbose output during: > compilation
  • Click "OK"

Then do a compilation and post the complete error output here, following the instructions in my previous reply.

The thing is that when I compile your code, using Arduino IDE 1.8.5 and with the Uno selected, there is no error. I think the verbose output will give me the information I need to figure out what is different between your installation and mine.

Message exceed max allowed characters. Here it is split in three:

Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"

Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"

/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware -tools /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/libraries -libraries /Users/andresparis/Documents/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path /var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973 -warnings=none -build-cache /var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_cache_225256 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr -verbose /var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_modified_sketch_417591/sketch_mar30a.ino
/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware -tools /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/libraries -libraries /Users/andresparis/Documents/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path /var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973 -warnings=none -build-cache /var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_cache_225256 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr -verbose /var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_modified_sketch_417591/sketch_mar30a.ino
Using board 'uno' from platform in folder: /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
"/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-

Part two:

13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973/sketch/sketch_mar30a.ino.cpp" -o "/dev/null"
"/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "-I/Users/andresparis/Documents/Arduino/libraries/Adafruit_FONA" "/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973/sketch/sketch_mar30a.ino.cpp" -o "/dev/null"
"/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "-I/Users/andresparis/Documents/Arduino/libraries/Adafruit_FONA" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SoftwareSerial/src" "/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973/sketch/sketch_mar30a.ino.cpp" -o "/dev/null"
"/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "-I/Users/andresparis/Documents/Arduino/libraries/Adafruit_FONA" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SoftwareSerial/src" "/Users/andresparis/Documents/Arduino/libraries/Adafruit_FONA/Adafruit_FONA.cpp" -o "/dev/null"

Part three:

"/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "-I/Users/andresparis/Documents/Arduino/libraries/Adafruit_FONA" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SoftwareSerial/src" "/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SoftwareSerial/src/SoftwareSerial.cpp" -o "/dev/null"
Generating function prototypes...
"/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "-I/Users/andresparis/Documents/Arduino/libraries/Adafruit_FONA" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SoftwareSerial/src" "/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973/sketch/sketch_mar30a.ino.cpp" -o "/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973/preproc/ctags_target_for_gcc_minus_e.cpp"
"/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "-I/Users/andresparis/Documents/Arduino/libraries/Adafruit_FONA" "-I/private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SoftwareSerial/src" "/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973/sketch/sketch_mar30a.ino.cpp" -o "/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_build_407973/sketch/sketch_mar30a.ino.cpp.o"
/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/arduino_modified_sketch_417591/sketch_mar30a.ino: In function 'void loop()':
sketch_mar30a:85: error: expected ')' before 'FONA_PREF_SMS_STORAGE'
        if (1 == sscanf(fonaNotificationBuffer, "+CMTI: " FONA_PREF_SMS_STORAGE ",%d", &slot)) {
                                                          ^
Using library Adafruit_FONA at version 1.3.2 in folder: /Users/andresparis/Documents/Arduino/libraries/Adafruit_FONA 
Using library SoftwareSerial at version 1.0 in folder: /private/var/folders/j4/k7l7j_yd76b5vmkx98p96h0r0000gp/T/AppTranslocation/B34C9881-BF26-4D20-8AC2-13C1DBF6D969/d/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SoftwareSerial 
exit status 1
expected ')' before 'FONA_PREF_SMS_STORAGE'

aparis1983:

Using library Adafruit_FONA at version 1.3.2 in folder: /Users/andresparis/Documents/Arduino/libraries/Adafruit_FONA

There it is. You're using an outdated version of the Adafruit FONA library. Please update to the latest version 1.3.4 of the library:

  1. Select Sketch > Include Library > Manage Libraries... from the Arduino IDE menus.
  2. Wait for the download to finish.
  3. In the "Filter your search" box, type adafruit fona.
  4. From the search results, click on "Adafruit FONA Library by Adafruit".
  5. Click the Update button.
  6. Wait for the update to finish.
  7. Click the Close button.
1 Like

Well, that was it. Thank you for you help! I don't think I would have thought to check the library version. Lesson learned.

You're welcome. I'm glad to hear it's working now. Enjoy!
Per