Buongiorno 2 blynk

buonasera
chiedo scusa se apro un secondo topic ma nel primo non posso piu rispondere
eccolo sketch:

‘’’
#define BLYNK_PRINT Serial
#include <BlynkSimpleEsp8266.h>

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

// Your WiFi credentials.
// Set password to “” for open networks.
char ssid[] = “”; //nome rete wifi
char pass[] = “”; //password rete wifi

int led = 1;

BLYNK_WRITE(V0)
{
led = param.asInt(); // assigning incoming value from pin V0 to a variable
if (led == 0) {
digitalWrite(LED_BUILTIN,HIGH );// spegne il LED
}
else if (led == 1) {
digitalWrite(LED_BUILTIN, LOW); // accende il LED

}
}

void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass, IPAddress(xxx,xxx,x,xx), 8080); //inserite l’ip pubblico del vostro server
pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
Blynk.run();
}
‘’’

A post was merged into an existing topic: Buongiorno blink