Skip to content

Instantly share code, notes, and snippets.

@jenschr
Created September 9, 2015 10:31
Show Gist options
  • Save jenschr/22e2f00272dcebb5ccf4 to your computer and use it in GitHub Desktop.
Save jenschr/22e2f00272dcebb5ccf4 to your computer and use it in GitHub Desktop.
Checking the call status of the SIM800L module
int8_t Adafruit_FONA::checkCallStatus(void) {
uint16_t level;
if (! sendParseReply(F("AT+CPAS"), F("+CPAS: "), &level) ) return 0;
return level;
}
@jenschr
Copy link
Author

jenschr commented Sep 9, 2015

Add the above to Adafruit_FONA.cpp and the below to the public section of Adafruit_FONA.h and you can check the progress of a call:

int8_t checkCallStatus(void);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment