Version using RawSerial instead of Serial (thread safe)
Fork of FONA_Cellphone_Library by
Revision 4:243ae42bfd65, committed 2017-07-11
- Comitter:
- zathorix
- Date:
- Tue Jul 11 20:16:43 2017 +0000
- Parent:
- 3:7916fb0cc4b0
- Commit message:
- Added roaming set function
Changed in this revision
Adafruit_FONA.cpp | Show annotated file Show diff for this revision Revisions of this file |
Adafruit_FONA.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Adafruit_FONA.cpp Tue Jul 04 08:40:08 2017 +0000 +++ b/Adafruit_FONA.cpp Tue Jul 11 20:16:43 2017 +0000 @@ -210,6 +210,13 @@ return status; } +uint8_t Adafruit_FONA::setNetworkRoaming() { + + if (!sendCheckReply("AT+CREG=5", "OK", 10000)) return -1; + + return 1; + +} uint8_t Adafruit_FONA::getRSSI(void) { uint16_t reply;
--- a/Adafruit_FONA.h Tue Jul 04 08:40:08 2017 +0000 +++ b/Adafruit_FONA.h Tue Jul 11 20:16:43 2017 +0000 @@ -222,6 +222,11 @@ */ uint8_t getNetworkStatus(void); + /** Set mobile data to international roaming + @return code -1, 1 + */ + uint8_t setNetworkRoaming(); + /** Get the RSSI of the network signal @return RSSI value in dBm per below reference