CCCPaste

**Wi-Fi Blynk** rev_03

/********* Pleasedontcode.com **********

	Pleasedontcode thanks you for automatic code generation! Enjoy your code!

	- Terms and Conditions:
	You have a non-exclusive, revocable, worldwide, royalty-free license
	for personal and commercial use. Attribution is optional; modifications
	are allowed, but you're responsible for code maintenance. We're not
	liable for any loss or damage. For full terms,
	please visit pleasedontcode.com/termsandconditions.

	- Project: **Wi-Fi Blynk**
	- Source Code NOT compiled for: Arduino Uno
	- Source Code created on: 2025-02-10 20:18:53

********* Pleasedontcode.com **********/

/****** SYSTEM REQUIREMENTS *****/
/****** SYSTEM REQUIREMENT 1 *****/
	/* blynk code */
/****** END SYSTEM REQUIREMENTS *****/


/********* User code review feedback **********
#### Feedback 1 ####
- adjust ssid with "ciaocomeva"
********* User code review feedback **********/

/* START CODE */

#define BLYNK_PRINT Serial

#include 
#include 
#include "BlynkHandler.h" // Include the Blynk handler

// Your Wi-Fi credentials
char ssid[] = "ciaocomeva"; // Updated SSID
char password[] = "Your_PASSWORD";

// Your Blynk Auth Token
char auth[] = "Your_BLYNK_AUTH_TOKEN";

// Pin where the LED is connected
const int ledPin = 2; // Change this to the pin you're using

void setup() {
    // Start Serial
    Serial.begin(115200);
    
    // Connect to Wi-Fi
    WiFi.begin(ssid, password);
    while (WiFi.status() != WL_CONNECTED) {
        delay(1000);
        Serial.println("Connecting to WiFi...");
    }
    Serial.println("Connected to WiFi");

    // Start Blynk
    Blynk.begin(auth, ssid, password);

    // Set LED pin as output
    pinMode(ledPin, OUTPUT);
}

void loop() {
    // Run Blynk
    Blynk.run();
}

/* END CODE */