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:
8:d54fbb976688
Parent:
7:e60a2ee53aa0
Child:
9:b18cfba4283a
--- a/Adafruit_FONA.cpp	Thu Oct 04 19:04:26 2018 +0000
+++ b/Adafruit_FONA.cpp	Sun Oct 07 12:58:46 2018 +0000
@@ -1272,10 +1272,13 @@
 
 bool Adafruit_FONA_3G::TCPsend(char *packet)
 {
-    mySerial.printf("%s", packet);
-    //mySerial.printf("%s\r\n", packet);
-    readline();
-    return true;
+    if (strlen(packet) > 0) {
+        mySerial.printf("%s", packet);
+        //mySerial.printf("%s\r\n", packet);
+        readline();
+        packet[0] = 0;
+        return true;
+    } else return false;
 }
 
 bool Adafruit_FONA_3G::sslTCPsend(char *packet, uint8_t len)