Connecting Arduino Devices

needs updates

Getting Started With Hardware

How To Use an Example Sketch

You should by now have the Blynk 2.0 Library installed on your computer. If not - click here. Example sketches will help you get your hardware online quickly and major Blynk features. Open the example sketch according to the hardware model or shield you are using.

Let’s take a look at the example sketch for an Arduino UNO + Ethernet shield

#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
char auth[] = "YourAuthToken";
void setup()
Serial.begin(9600); // See the connection status in Serial Monitor
Blynk.begin(auth); // Here your Arduino connects to the Blynk Cloud.
void loop()
{; // All the Blynk Magic happens here...

Auth Token

In this example sketch, find this line:

char auth[] = "YourAuthToken";

This is the Auth Token that you emailed yourself. Please check your email and copy it, then paste it inside the quotation marks.

It should look similar to this:

char auth[] = "f45626c103a94983b469637978b0c78a";

Upload the sketch to the board and open Serial Terminal. Wait until you see something like this:

Blynk v.X.X.X
Your IP is
Blynk connected!

Congrats! You are all set! Now your hardware is connected to the Blynk Cloud!