The "blynk-library/examples/Boards_GSM/TinyGSM SIM800_SIM900/TinyGSM SIM800 SIM900.ino" Example modified for a Arduino Pro Mini using Software Serial on Pins: 2 Rx and 3 Tx
Arduino IDE 1.8.5.
Lybreries: TinyGsmClient.h V0.3.6 and Blynk V0.6.1
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 /
// 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
UNABLE TO CONNECT BLYNK SERVER:
Im Using:
The "blynk-library/examples/Boards_GSM/TinyGSM SIM800_SIM900/TinyGSM SIM800 SIM900.ino" Example modified for a Arduino Pro Mini using Software Serial on Pins: 2 Rx and 3 Tx
Arduino IDE 1.8.5.
Lybreries: TinyGsmClient.h V0.3.6 and Blynk V0.6.1
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(); }