@hbierau, I compiled the FONA library using CLI to simplify things. Here are the steps I used:
- Create a new directory (that you will later compile with CLI)
- Copy the FONA files from the github repo and remove everything but the
includesfolder and the two FONA library files (.cpp and .h). - Copy the FONAtest.ino file, from the
examples\FONAtest\folder, to the folder you created above - Edit the
Adafruit_FONA.hfile and add#include "Arduino.h"before the other includes - Edit the
FONAPlatStd.hfile in the\includes\platform\folder and comment out#include <NewSoftSerial.h>on line 36 - Edit
FONAtest.inoand add#include "Arduino.h"before the other include. Also comment out lines 40-42 and add a new line as shown below:
//#include <SoftwareSerial.h>
//SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);
//SoftwareSerial *fonaSerial = &fonaSS;
USARTSerial *fonaSerial = &Serial1; // NEW LINE
Now compile with a Photon target and test. Good luck!