BLYNK
BLYNK.IO       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Repeated Connecting to blynk-cloud.com:80

I’ve created a project which uses an Arduino Pro Mini (3.3V) connected to the Blynk Server using a Sim800 cellular modem. The project worked fine but recently the device won’t stay connected to the Blynk server. The ping time seems incredibly long and " Connecting to blynk-cloud.com :80" is repeated in the serial monitor.

I’m using a hologram global IoT sim, but have also tried a global IoT sim from Truphone and the issue persists. The issue occurs whether the device is connected to O2 or Vodafone. I’m using the iOS version of Blynk on my phone for the Blynk mobile application. I’ve tried changing the port from 80 to 8080, as well as defining the Eurpoean Blynk server IP address but still no luck.

SerialOut

#define TINY_GSM_MODEM_SIM800
#define FONA_RX 8
#define FONA_TX 9
#define FONA_RST 4
#define BLYNK_PRINT Serial

#include <TinyGsmClient.h>
#include <Blynk.h>
#include <SPI.h>
#include <SoftwareSerial.h> 
#include <Adafruit_FONA.h>
#include <BlynkSimpleTinyGSM.h>

char auth[] = "*********************************";
char apn[]  = "hologram";
char user[] = "";
char pass[] = "";

SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);
SoftwareSerial *fonaSerial = &fonaSS;
Adafruit_FONA fona = Adafruit_FONA(FONA_RST);
TinyGsm modem(fonaSS);

void setup() {
Serial.begin(115200);

  while (!Serial);
  {
  fonaSerial->begin(4800);
  }

  if (! fona.begin(*fonaSerial)) {
    Serial.println(F("Couldn't find FONA"));
    while (1);
  }

  Blynk.begin(auth, modem, apn, user, pass, "blynk-cloud.com", 80);
}

void loop() 
{
Blynk.run();
}

Have you tried port 8080 ?

What version of the Blynk library are you using?

Pete.

Yes, I tried port 8080 and still had the same issue.
I was using version 0.6.1 of the Blynk library. But I upgraded to 1.0.0 and still had the same issue.

Pete.