thomasricci / fona_gsm Goto Github PK
View Code? Open in Web Editor NEWUpgraded branch for the Adafruit FONA C++ library, adding the retrieve of incoming call numbers when they occur. This feature, not implemented yet in the official Adafruit library, is particularly interesting if you want to perform different actions based on the calling number or simply log the caller's number. My implementation is interrupt-based and so not blocking the rest of Arduino sketch's execution. According to SIM800L documentation by SIMCom, when a phone call occurs an hardware interrupt (falling edge) is thrown by the module and can be handled by FONA's RI output pin that in my implementation is tied to Arduino's interupt 0 (pin 3 in Arduino Uno Rev3).