GSM module SIM 900 Problem to send SMS (FIXED VERSION)

Thanks for the code.

If I have well understood, does this code, in theory, must do both the AT commands testing and the SMS sending message ?

I'm just starting to learn about AT commands, you know