Maltar:
// Importation del a bibliothèque de GSM
#include <GSM.h>
Bonjour,
La librairie "GSM.h" est destinée au shield GSM officiel d'arduino. Elle n'est pas compatible avec ton shield de Seeedstudio.
Donc pas étonnant que le code ne marche pas.
Il existe la librairie GoGprs pour le module GSM de ton shield :La librairie GoGprs pour le GSM/GPRS shield de GeekOnFire - MCHobby - Le Blog
convient au module Sim900 (ou conviendrait? certains signalent des bugs).
Sinon pour un envoi simple de SMS :GPRS Shield V2.0 | Seeed Studio Wiki
///SendTextMessage()
///this function is to send a sms message
void SendTextMessage()
{
mySerial.print("AT+CMGF=1\r"); //Because we want to send the SMS in text mode
delay(100);
mySerial.println("AT + CMGS = \"+86186*****308\"");//send sms message, be careful need to add a country code before the cellphone number
delay(100);
mySerial.println("How are you ?");//the content of the message
delay(100);
mySerial.println((char)26);//the ASCII code of the ctrl+z is 26
delay(100);
mySerial.println();
}