i am using SIM800l GSM with Arduino hardware and latest Blynk library v.1.3.2
my GSM is trying to connect to blynk server but and even if its connected I can see my device is online and able to send and receive the data but still it trys to reconnect the device
Code
#define BLYNK_TEMPLATE_ID "TMPxxxxxx"
#define BLYNK_TEMPLATE_NAME "Device"
#define BLYNK_AUTH_TOKEN "YourAuthToken"
#define BLYNK_PRINT Serial
#define TINY_GSM_MODEM_SIM800
#include <TinyGsmClient.h>
#include <BlynkSimpleTinyGSM.h>
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
// Your GPRS credentials, if any
const char apn[] = "YourAPN";
const char user[] = "";
const char pass[] = "";
const char auth[] = "YourAuthToken";
TinyGsm modem(SerialAT);
void setup() {
// Set console baud rate
SerialMon.begin(9600);
delay(10);
// Set GSM module baud rate
SerialAT.begin(9600);
delay(6000);
// Restart takes quite some time
// To skip it, call init() instead of restart()
SerialMon.println("Initializing modem...");
modem.restart();
String modemInfo = modem.getModemInfo();
SerialMon.print("Modem Info: ");
SerialMon.println(modemInfo);
// Unlock your SIM card with a PIN
// modem.simUnlock("1234");
Blynk.begin(auth, modem, apn, user, pass);
}
void loop() {
Blynk.run();
}
Serial monitor Output
[2413] Modem init...
[2756] Connecting to network...
[2845] Network: AirTel
[2846] Connecting to iot.com ...
[7011] Connected to GPRS
[7084] Connecting to blynk.cloud:80
[9779] Ready (ping: 565ms).
[16934] Connecting to blynk.cloud:80
[76896] Connecting to blynk.cloud:8080
[83639] Connecting to blynk.cloud:80
[86182] Ready (ping: 769ms).