Go Down

Topic: is there a way to send sms with data in a .txt? (Read 624 times) previous topic - next topic

pepsikill

Hi

For my school project, i need to send a sms to a user with some data (Temp, battery level, rain...)
But the problem is that i don't know how to "create variable" to send data from a .txt :/

The only thing i find are from SD card or with a processing :/

here my code so far

Code: [Select]
#include "SIM900.h"
#include <SoftwareSerial.h>
#include "sms.h"

SMSGSM sms;

boolean started=true;


void setup()
{

  Serial.begin(9600);

  Serial.println("GSM Shield testing.");

  if (gsm.begin(9600))
  {
    Serial.println("\nstatus=READY");
    started=true; 
  }
  else
   Serial.println("\nstatus=IDLE");

  if(started)
  {
    if (sms.SendSMS("+33600000000", "Random"));
    Serial.println("\nSMS sent OK");
  }
};

void loop()
{

}


thx for the help ^^


Ps: Sorry for my English ,i'm french ><

pepsikill


Go Up