Library for the Adafruit FONA. This is a port of the original Arduino library available at: https://github.com/adafruit/Adafruit_FONA_Library . - Modified by Marc PLOUHINEC 27/06/2015 for use in mbed - Modified by lionel VOIRIN 05/08/2018 for use Adafruit FONA 3

Dependents:   Adafruit_FONA_3G_Library_Test

Revision:
9:b18cfba4283a
Parent:
6:8fdb30dc3108
Child:
10:7951d9691cb2
--- a/Adafruit_FONA.h	Sun Oct 07 12:58:46 2018 +0000
+++ b/Adafruit_FONA.h	Tue Oct 23 19:16:20 2018 +0000
@@ -157,7 +157,7 @@
 
     // GPRS handling
     bool enableGPRS(bool onoff);
-    uint8_t GPRSstate(void);
+    int GPRSstate(void);
     bool getGSMLoc(uint16_t *replycode, char *buff, uint16_t maxlen);
     bool getGSMLoc(float *lat, float *lon);
     void setGPRSNetworkSettings(const char* apn, const char* username=0, const char* password=0);
@@ -297,19 +297,23 @@
     bool pickUp(void);
     bool enableGPS(bool onoff);
     
+    // SIM query
+    uint8_t unlockSIM(char *pin);
+    
     // TCP raw connections
     uint8_t TCPinitialize(void);
+    uint8_t sslTCPinitialize(void);
     uint8_t getTCPtimeout(char *tcptimeout);
     bool TCPconnect(char *server, uint16_t port);
     bool sslTCPconnect(char *server, uint16_t port);
     bool TCPclose(void);
     bool sslTCPclose(void);
     bool TCPsend(char *packet);
-    bool sslTCPsend(char *packet, uint8_t len);
+    bool sslTCPsend(char *packet);
 
 protected:
     bool sendParseReply(const char* tosend, const char* toreply, float *f, char divider, uint8_t index);
-    bool parseReply(const char* toreply, float *f, char divider, uint8_t index);
+    bool parseReply(const char* toreply, float *f, char divider, uint8_t index=0);
 };
 
 #endif
\ No newline at end of file