Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I huge gooogling But I can not solved this problem.


protected void ReadSMS_Click(object sender, EventArgs e)
{
openport();//Port Related function


// Select SIM storage
serialport.WriteLine("AT+CPMS=" + Environment.NewLine);
System.Threading.Thread.Sleep(200);
// Read the messages
txtreadmessage.Text = serialport.ReadExisting();
serialport.WriteLine("AT+CMGL=" + Environment.NewLine);
System.Threading.Thread.Sleep(200);
serialport.Close();
}


I want to read sms from GSM modem. Can you send any member sample correct code for read sms from GSM Modem under click event using asp.net c#
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900