Have tried new code and sill no luck with data being sent:
#include <Ubidots_FONA.h>
#include <SoftwareSerial.h>
#include <Adafruit_FONA.h>
#define APN "epc.tmobile.com"
#define USER "" // if your apn doesnt have username just put ""
#define PASS "" // if your apn doesnt have password just put ""
#define TOKEN "twG9BwrMyj23KL455VXxRQGdZ89Q06" // Remplace it with your token
#define ID "56910c787625423044885ab2" // Remplace it with your variable ID
Ubidots client(TOKEN);
void setup() {
Serial.begin(115200);
delay(2000);
client.gprsNetwork(F(APN),F(USER),F(PASS)); // First set your apn data
}
void loop() {
//float value = analogRead(A0); // Reading analog pin A0
float value = 90;
client.flushSerial();
client.checkFona();
client.gprsOnFona();
client.save_value(value, ID);
Serial.println(value);
delay(600); // 600 milliseconds
---> AT
<--- OK
---> AT
<--- OK
---> AT
<--- OK
---> ATE0
<--- OK
---> ATE0
<--- OK
---> AT+CVHU=0
<--- OK
---> ATI
<--- SIM800 R13.08
OK
FONA is OK
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","epc.tmobile.com"
<--- OK
---> AT+SAPBR=3,1,"USER",""
<--- OK
---> AT+SAPBR=3,1,"PWD",""
<--- OK
---> AT+SAPBR=1,1
<--- ERROR