Arduino GSM SIM900 receiving text and then storing value as a variable in code

I want to receive a value from the GSM to use it in the arduino code , or even converting from the type of messages received by the GSM to a float .
Hope someone will help with the code.
that's my normal receiving code:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10,11); 
void setup()
{
  Serial.begin(9600);
  mySerial.begin(9600);
  mySerial.println("AT+CNMI=1,2,0,0,0");
}
void loop()
{
   delay(500);
  while (Serial.available()) 
  {
    mySerial.write(Serial.read());
  }
  while(mySerial.available()) 
  {
    Serial.write(mySerial.read());
  }
}

The Serial Input Basics tutorial will help.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.