blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.81k stars 1.38k forks source link

BLYNK EXAMPLE SIM800L + ARDUINO PRO MINI #452

Closed JansZoro closed 5 years ago

JansZoro commented 5 years ago

gsm issue

UNABLE TO CONNECT BLYNK SERVER:

Im Using:

The Last time I did a GSM connection was on Oct/2018 and it worked property in that occasion (I don't remember what Libraries Version).

`` / Comment this out to disable prints and save space /

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 //#define TINY_GSM_MODEM_A7 //#define TINY_GSM_MODEM_BG96 //#define TINY_GSM_MODEM_XBEE

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

include

include

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

// Your GPRS credentials // Leave empty, if missing user or pass char apn[] = "web.vmc.net.co"; //(Virgin Movile Colombia) char user[] = ""; char pass[] = "";

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

// or Software Serial on Uno, Nano

include

SoftwareSerial SerialAT(2, 3); // RX, TX

TinyGsm modem(SerialAT);

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

delay(10);

// Set GSM module baud rate SerialAT.begin(38400); 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(); }

vshymanskyy commented 5 years ago

Please use https://community.blynk.cc/ for such kind of questions