16,004,653 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.