Go Down

Topic: message with led please help (Read 2324 times) previous topic - next topic


I want to turned on RED LED if the message not sent and i want to turnes on GREEN LED if the message is sent


If you read about endSMS, you may use it to check whether an SMS was sended or not.

Returns int

In asynchronous mode, endSMS() returns 0 if it is still executing, 1 if successful, and >1 if there is an error. In synchronous mode, it returns 1 if the previous successfully executed, and 0 if it has not.

To lightup the LEDs :

Code: [Select]
digitalWrite(redLED, HIGH);
digitalWrite(greenLED, HIGH);

If you need to translate use Google Translator

Good luck

Go Up