Library for the Adafruit FONA. This is a port of the original Arduino library available at: https://github.com/adafruit/Adafruit_FONA_Library .

Dependents:   Adafruit_FONA_Library_FONAtest

Library for the Adafruit FONA. This is a port of the original Arduino library available at: https://github.com/adafruit/Adafruit_FONA_Library .

Files at this revision

API Documentation at this revision

Comitter:
marcpl
Date:
Mon Jun 29 20:48:25 2015 +0000
Parent:
1:89299f09929c
Commit message:
Avoid converting a bool into an uint8.

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	Sat Jun 27 15:03:10 2015 +0000
+++ b/Adafruit_FONA.cpp	Mon Jun 29 20:48:25 2015 +0000
@@ -152,7 +152,7 @@
 
 /********* SIM ***********************************************************/
 
-uint8_t Adafruit_FONA::unlockSIM(char *pin)
+bool Adafruit_FONA::unlockSIM(char *pin)
 {
     char sendbuff[14] = "AT+CPIN=";
     sendbuff[8] = pin[0];
--- a/Adafruit_FONA.h	Sat Jun 27 15:03:10 2015 +0000
+++ b/Adafruit_FONA.h	Mon Jun 29 20:48:25 2015 +0000
@@ -92,7 +92,7 @@
         bool getBattVoltage(uint16_t *v);
         
         // SIM query
-        uint8_t unlockSIM(char *pin);
+        bool unlockSIM(char *pin);
         uint8_t getSIMCCID(char *ccid);
         uint8_t getNetworkStatus(void);
         uint8_t getRSSI(void);