Click here to Skip to main content
16,004,653 members

Comments by kick_start (Top 5 by date)

kick_start 21-Feb-20 1:09am View    
sir i am totally new so i didn't got your suggestion. my sorry but can you please tell me how to implement it. and the in above program if i put the phone number itself in double quote till it dont work..
kick_start 20-Feb-20 6:02am View    
not working for me can you please cross check no processes after showing message recieved from
kick_start 20-Feb-20 5:58am View    
#include <gsm.h>
#define PINNUMBER ""
GSM gsmAccess; // include a 'true' parameter for debug enabled
GSM_SMS sms;

char remoteNumber[20]; // Holds the emitting number

void setup()
{
Serial.begin(9600);
Serial.println("SMS Messages Receiver");
boolean notConnected = true;
while(notConnected)
{
if(gsmAccess.begin(PINNUMBER)==GSM_READY)
notConnected = false;
else
{
Serial.println("Not connected");
delay(1000);
}
}
Serial.println("GSM initialized");
Serial.println("Waiting for messages");
}

void loop()
{
char c;

// If there are any SMSs available()
if (sms.available())
{
Serial.println("Message received from:");

// Get remote number
sms.remoteNumber(remoteNumber, 20);

Serial.println(remoteNumber);

sms.beginSMS(remoteNumber);
sms.print("all working good");
sms.endSMS();

Serial.println("\nCOMPLETE!\n");
Serial.println("\nEND OF MESSAGE");
sms.flush();
Serial.println("MESSAGE DELETED");
}
}
kick_start 17-Feb-20 0:53am View    
SIR I WANT TO USE STORED NUMBER IN CHAR FROM RECIVED SMS. BUT I AM NOT GETTING SUCCEED IN IT CAUSE IT NEEDS NUMBER IN DOUBLE INVERTED COMMAS BUT HOW TO DO IT
??????????????????????
kick_start 17-Feb-20 0:51am View    
NO SIR I KNOW HOW TO SEND SMS. BUT IN MY CODE I AM USING CHAR TO STORE REMOTE NUMBER EMITTED FROM GSM BUT I CANT DIRECTLY USE IT. IT NEEDS TO BE PUT IN DOUBLE INVERTED COMMAS. AND I DONT KNOW HOW TO DO IT.