Adafruit Fona library for Arduino Uno Wifi Rev2

Adafruit cellular platform - SMS and IoT over celluar

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mahmoodalam
 
Posts: 2
Joined: Tue Dec 10, 2019 5:34 am

Adafruit Fona library for Arduino Uno Wifi Rev2

Post by mahmoodalam »

Hi,

I have the "Adafruit FONA 808 Shield - Mini Cellular GSM + GPS for Arduino". I want to use this shield on Arduino Uno Wifi Rev2. Where can I find the supporting fona library ?

Thanks.


User avatar
mahmoodalam
 
Posts: 2
Joined: Tue Dec 10, 2019 5:34 am

Re: Adafruit Fona library for Arduino Uno Wifi Rev2

Post by mahmoodalam »

The Adafruit Fona library mentioned by you is working for the Arduino Uno and not Arduino Uno Wifi Rev2. With the later it is giving compilation errors, shown in the file attached. Can you help me in identifying the errors and fixing them.
Attachments
FonaLibraryErrorMessagesUnoWiFiRev2.txt
(71.61 KiB) Downloaded 19 times

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit Fona library for Arduino Uno Wifi Rev2

Post by adafruit_support_mike »

Oh lovely.. the Arduino board support package disabled the F() macro, which broke all the relevant type declarations in the FONA library.

You should be able to work around most of the trouble by changing this line of FONAPlatStd.h

https://github.com/adafruit/Adafruit_FO ... tStd.h#L59

to this:

Code: Select all

typedef const char *	FONAFlashStringPtr;
And then you'll have to change this part of the header:

https://github.com/adafruit/Adafruit_FO ... #L202-L207

to convert all the string storage to type 'const char*':

Code: Select all

  const char apn[ 4 ];
for instance.

Locked
Please be positive and constructive with your questions and comments.

Return to “FONA”