Hi, i have some error in my project
3. Add details :
My hardware: esp8266
• Samsung A14(Android 13, One UI Core 5)
• Indonesia
• Blynk at version 1.3.2
Here’s my code:
#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID "TMPL6Yyn_YkCD"
#define BLYNK_TEMPLATE_NAME "MQ2 ESP8266"
#define BLYNK_AUTH_TOKEN "------"
#include <ESP8266WiFi.h>
#include <Blynk.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "WiFiID";
char pass[] = "mypass";
BLYNK_WRITE (V0) {
digitalWrite(D0, param.asInt());
}
void setup() {
Serial.begin(9600);
Blynk.begin(auth, "blynk.cloud", 8080);
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
int sensorValue1 = digitalRead(D2);
int sensorValue2 = digitalRead(D3);
int sensorValue3 = digitalRead(D4);
Blynk.virtualWrite(V1, sensorValue1);
Blynk.virtualWrite(V2, sensorValue2);
Blynk.virtualWrite(V3, sensorValue3);
delay(100);
Blynk.run();
}
The issues:
[Unformatted compiler error message removed by moderator]
What’s Blynk_h for?