Arduino+sim800l не коннектится к blynk

Добрый день. Может кто сталкивался. Запускаю стандартный скетч GSM. Не коннектит к blynk-cloud

Arduino UNO и sim800L
• iOS
• Blynk server
• Blynk Library version 0.5.1


#define BLYNK_PRINT Serial

// Select your modem:
#define TINY_GSM_MODEM_SIM800
//#define TINY_GSM_MODEM_SIM900
//#define TINY_GSM_MODEM_M590
//#define TINY_GSM_MODEM_A6

// Default heartbeat interval for GSM is 60
// If you want override this value, uncomment and set this option:
//#define BLYNK_HEARTBEAT 30

#include <TinyGsmClient.h>
#include <BlynkSimpleSIM800.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "fc82cca9347741f6bf0a2aed71060d13";

// Your GPRS credentials
// Leave empty, if missing user or pass
char apn[]  = "internet.mts.ru";
char user[] = "mts";
char pass[] = "mts";

// Hardware Serial on Mega, Leonardo, Micro
//#define SerialAT Serial1

// or Software Serial on Uno, Nano
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(8, 9); // RX, TX

TinyGsm modem(SerialAT);

void setup()
{
  // Debug console
  Serial.begin(9600);

  delay(10);

  // Set GSM module baud rate
  SerialAT.begin(9600);
  delay(3000);

  // Restart takes quite some time
  // To skip it, call init() instead of restart()
  Serial.println("Initializing modem...");
  modem.restart();

  // Unlock your SIM card with a PIN
  //modem.simUnlock("1234");
  Blynk.begin(auth, modem, apn, user, pass);
}

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

Initializing modem…
[3009]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
/
//_, /////_
/
__/ v0.5.1 on Arduino Uno

[3120] Modem init…
[3381] Connecting to network…
[3462] Network: MTS
[3462] Connecting to internet.mts.ru
[4102] Connected to GPRS
[4164] Connecting to blynk-cloud.com:80
[18246] Connecting to blynk-cloud.com:80


Вопрос решен. Помогла смена симкарты.

2 Likes

Спасибо что обновили статус

1 Like