Jump to content

Recommended Posts

Hey everyone,
I'm trying to interface an MSP-EXP430FR5969 with a GPS+GSM module (https://tronixlabs.com.au/arduino/shields/3g-shield/adafruit-fona-3g-cellular-breakout-900-and-2100-mhz-for-optus-vodafone-australia/)
I've been able to send a text message to my mobile using the Arduino, but when I try on Energia 1.6 with the module now plugged into the MSP430 I get compilation errors (mainly due to atof not being declared). Here's the code I am using:


#include <stdlib.h>
#include <stdio.h>
#include "Adafruit_FONA.h"
#define FONA_RX 4
#define FONA_TX 3
#define FONA_RST 5
#include <SoftwareSerial.h>
SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);
SoftwareSerial *fonaSerial = &fonaSS;
Adafruit_FONA_3G fona = Adafruit_FONA_3G(FONA_RST);
void setup() {
 while (!Serial);
void loop() {
 void sendText () {
        char sendto[21]= "04XXXXXXXX";
        char message[141] = "Text Text Text Text Text Text Text Text Text Text Text Text";
        if (!fona.sendSMS(sendto, message)) {
          Serial.println(F("Sending message"));
        } else {
"C:\Users\...\Adafruit_FONA.cpp:909:30: error: 'atof' was not declared in this scope" is the main error I am getting. Any suggestions on how to have this compile please?
Thanks in advance :)
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...