Check the status of an RGB Led

Hi! I have to check the status of an RGB Led with a GSM Module, if I text it "Status" it has to text back with the color of the Led. I tryed with a variable: I wrote at the beginning char = x and at the end of the tuning On operation of the led the X aquired the color status. So at the end of every imput color message the x assumes the color status. When i send the message "status" to the gsm he should send me the "x" status but the message is a strange text "&,$,£" character like that or just an empty message.

if (message =="status") { Serial.println("Richiesta Informazioni Led"); Serial.println("\nEseguendo Richiesta.."); sms.beginSMS(Mittente); sms.print(x); sms.endSMS(); Serial.println("\nOPERAZIONE COMPLETATA"); message = "";

The status of the LED will be whatever you last wrote to it.

Ok but when the GSM send it to the phone the message is unreadable.

Ok but when the GSM send it to the phone the message is unreadable.

That's a bummer. I'm willing to bet that the people at http://snippets-r-us.com could help you with your snippet, though.