adafruit / Adafruit_FONA

Arduino library for the Adafruit FONA
https://www.adafruit.com/products/1946
211 stars 238 forks source link

The timeout of the pickup() method is too short #107

Open AberDerBart opened 5 years ago

AberDerBart commented 5 years ago

The timeout for the pickup() method is only the default timeout (500ms). Sometimes, this timeout is not enough, the response comes shortly after the method times out and returns false.

The SIM800 AT command manual specifies a maximum response time of 20s for voice calls. I therefore suggest changing the timeout for this method to 20s. Optionally, a timeout parameter could be added with 20s as default in case someone needs a shorter timeout.

Similar issues could affect other AT commands used, i did not check it yet.

AberDerBart commented 5 years ago

Fixed in #108 (unfortunately not for FONA 3G)

AberDerBart commented 5 years ago

It's possible that it isn't even an issue for FONA 3G though - I could not find any information in the AT command manual.