Envoi de sms SIM900

J'ai repris les élements vus plus haut et rajouté la fonction " void GetSIM900() " en fin de programme.
Avec ce code j'ai des réponses :

#include <SoftwareSerial.h>    // For Arduino 1.0 
SoftwareSerial SIM900(2, 3); // For Arduino 1.0
 
void setup()
{
  SIM900.begin(9600);               // the GPRS baud rate   
  Serial.begin(9600);                 // the GPRS baud rate   
}
 
void loop()
{
    if(Serial.available())
    {
       char c = Serial.read();
       SIM900.print(c);
     } 
    else  if(SIM900.available())
    {
        char c = SIM900.read();
       Serial.print(c);
     }   
}
//---------------------------------------------------------------------
void GetSIM900()
{
  delay(2000);
 
  if(SIM900.available())
  {
    Serial.print("\n");
    delay(3000);
    while(SIM900.available())
    {
      Serial.print((char)SIM900.read()); // On vide la mémoire tampon du SIM900
    }
    Serial.print("\n");
  }
}