Go Down

Topic: Error in gsm library documentation (Read 911 times) previous topic - next topic

asitech

Hello guys,

I think I found an error in the documentation of GSM3SMSService::available() function in GSM_SMS library:
the return value is 0 if no sms are available and 1 if there is one sms (not the number of characters in the message as stated at http://arduino.cc/en/Reference/GSMSMSAvailable).

Furthermore, there is no mention about the fact that the function has different behavior if used synchronously or asynchronously:
ready() returns 0 while the command is executing, 1 if there is an sms available and 4 if not.

Please tell me if I'm wrong and possibly update the documentation.

Thank you and sorry if I choose the wrong place to post.

A

Go Up