Connect with GSM

Hi dear.
I face problem while connecting app with ardoino i do every steps but still shows not connect yet
So please help me with that
You will find code below:


Download latest Blynk library here:

Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.

Downloads, docs, tutorials:
Sketch generator: 
Blynk community:  
Follow us:        

Blynk library is licensed under MIT license
This example code is in public domain.

Attention! Please check out TinyGSM guide:

Change GPRS apm, user, pass, and Blynk auth token to run :slight_smile:
Feel free to apply it to any other example. It’s simple!


/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial

// Select your modem:
//#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

// 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 <BlynkSimpleTinyGSM.h>

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

// Your GPRS credentials
// Leave empty, if missing user or pass
char apn[] = “YourAPN”;
char user[] = “”;
char pass[] = “”;

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

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

TinyGsm modem(SerialAT);

void setup()
// Debug console


// Set GSM module baud rate

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

// Unlock your SIM card with a PIN

Blynk.begin(auth, modem, apn, user, pass);

void loop()

@AH1 please edit your post (using the pencil icon at the bottom) and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this: