Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Serial Monitor error when sending long messages #25

Closed
AndrRap opened this issue Mar 29, 2018 · 1 comment
Closed

Serial Monitor error when sending long messages #25

AndrRap opened this issue Mar 29, 2018 · 1 comment

Comments

@AndrRap
Copy link

AndrRap commented Mar 29, 2018

Hello,
I have tried the GPRS_SendSMS example and everything is fine when I send short messages. But when the message is longer than 30 chars, the serial monitor shows "Send SMS failed!" even f the SMS is sent and delivered correctly, not trunked.

@lanselambor
Copy link
Contributor

@AndrRap Thank you for pushing this issue, the sendSMS return failure because it wasn't waiting enough time to catch "Ok",.

To fix this issue:
In GPRS_Shield_Arduino.cpp, change line 161, increase timeout number, especially chartimeout.

return sim900_wait_for_resp("OK\r\n", CMD, 5, 5000); 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants