#define LED_BUILTIN 2
/* Fill-in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID "TMPL5r2eV40US"
#define BLYNK_TEMPLATE_NAME "IoT Based Device Power Status Indicator"
#define BLYNK_AUTH_TOKEN "nXoJJ4xo3rhb2Fw5GGf06WR-Bl6wb1B0"
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <WiFi101.h>
#include <BlynkSimpleWiFiShield101.h>
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
void setup()
{
// Debug console
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT);
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
// You can also specify server:
//Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "blynk.cloud", 80);
//Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
delay(2000);
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}