Go Down

Topic: sms.flush documentation issue (Read 24 times) previous topic - next topic

Hi all,

the documentation of the GSM / flush() function says :

(...) flush() clears the modem memory of any sent messages once all outgoing characters have been sent.
Yet, the SMS receiver sketch provided in the Arduino IDE as example of GSM use clearly presents that same function as a way to clear modem memory from received SMS :

Code: [Select]
    // delete message from modem memory
    Serial.println("MESSAGE DELETED");

Shouldn't this be corrected in the documentation ?
Or does flush() actually wipe out the modem memory only when a text messages has been first sent?



The first statement is a compound statement. Something happens (sent messages are deleted from memory) only after something else happens (any pending messages have actually been sent).

If there are no messages in the queue to be sent, then the sent messages are deleted immediately.

I don't see a conflict.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131