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());
}
}