Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added code to support Cell Eng Data and also to suppress Unsolicited SMS Notifications #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kcuhc255
Copy link

The changes are clearly delineated by comments in both the .cpp and .h files.

To suppress the Unsolicited SMS notifications:
fona.setURCMode(false); // Suppress Unsolicited Messages

The following call returns the LAC, CID, MNC and MMC:
fona.getCELLLoc(0, dataBuffer, sizeof(dataBuffer));

This is the code I added to the Example sketch to test the engineering data capture. You need to add a "Q" item to the menu. :

/*****************************************/
case 'Q': {
  char celldata[220];
  // getCELLLoc(uint16_t *errorcode, char *buff, uint16_t maxlen)
  fona.getCELLLoc(0, celldata, 220);
  Serial.print("Got cell data"); Serial.println(celldata);
  break;
}

// NOTE: The following is superfluous because I call the endCELLLoc() within the call to acquire the data in order to avoid flaky behavior.
case 'Z': {
// endCELLLoc(uint16_t *errorcode)
fona.endCELLLoc(0);
Serial.println("Ended acquiring cell data");
break;
}

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

Successfully merging this pull request may close these issues.

1 participant