You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded this as a zip and went to arduino ide and sketch - include library - add .ZIP library i selected this zip it said install library
My Code:
#define BLYNK_TEMPLATE_ID "TMPL3skojbLaL"
#define BLYNK_TEMPLATE_NAME "LED on and off"
#define BLYNK_AUTH_TOKEN "SjgC5-_SnveKCvqzIjAx0fYf1TPW0cZ1"
#include <ESP8266WiFi.h>
#include <BlynkEdgent.h>
// Replace with your network credentials
const char* ssid = "Kaarthik";
const char* password = "KaarthikRanjan";
// Pin where the LED is connected
const int ledPin = 14; // GPIO14
// Initialize LED state
digitalWrite(ledPin, LOW); // Make sure the LED is off initially
}
// Function to be called when the button widget sends data
BLYNK_WRITE(VIRTUAL_PIN)
{
int pinValue = param.asInt(); // Get the value from the button
digitalWrite(ledPin, pinValue); // Turn the LED on/off
}
void loop()
{
// Run Blynk
BlynkEdgent.run();
}
Error:
In file included from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\BlynkEdgent/BlynkEdgent.h:8,
from C:\Users\USER\AppData\Local\Temp.arduinoIDE-unsaved2024811-12764-1yirpk0.9bq1\sketch_sep11a\sketch_sep11a.ino:6:
c:\Users\USER\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp32_SSL.h:15:2: error: #error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
15 | #error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
| ^~~~~
In file included from C:\Users\USER\AppData\Local\Temp.arduinoIDE-unsaved2024811-12764-1yirpk0.9bq1\sketch_sep11a\sketch_sep11a.ino:6:
C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\BlynkEdgent/BlynkEdgent.h:35:2: error: #error "BLYNK_AUTH_TOKEN is assigned automatically when using Blynk.Edgent, please remove it from the configuration"
35 | #error "BLYNK_AUTH_TOKEN is assigned automatically when using Blynk.Edgent, please remove it from the configuration"
| ^~~~~
In file included from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\BlynkEdgent/BlynkEdgent.h:41,
from C:\Users\USER\AppData\Local\Temp.arduinoIDE-unsaved2024811-12764-1yirpk0.9bq1\sketch_sep11a\sketch_sep11a.ino:6:
C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\BlynkEdgent/ConfigStore.h:101:10: fatal error: Preferences.h: No such file or directory
101 | #include <Preferences.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
pls solve this pls pls pls pls
The text was updated successfully, but these errors were encountered:
I downloaded this as a zip and went to arduino ide and sketch - include library - add .ZIP library i selected this zip it said install library
My Code:
#define BLYNK_TEMPLATE_ID "TMPL3skojbLaL"
#define BLYNK_TEMPLATE_NAME "LED on and off"
#define BLYNK_AUTH_TOKEN "SjgC5-_SnveKCvqzIjAx0fYf1TPW0cZ1"
#include <ESP8266WiFi.h>
#include <BlynkEdgent.h>
// Replace with your network credentials
const char* ssid = "Kaarthik";
const char* password = "KaarthikRanjan";
// Pin where the LED is connected
const int ledPin = 14; // GPIO14
// Blynk virtual pin
#define VIRTUAL_PIN V1
void setup()
{
// Debug console
Serial.begin(115200);
// Initialize Blynk Edgent
BlynkEdgent.begin();
// Set LED pin as OUTPUT
pinMode(ledPin, OUTPUT);
// Initialize LED state
digitalWrite(ledPin, LOW); // Make sure the LED is off initially
}
// Function to be called when the button widget sends data
BLYNK_WRITE(VIRTUAL_PIN)
{
int pinValue = param.asInt(); // Get the value from the button
digitalWrite(ledPin, pinValue); // Turn the LED on/off
}
void loop()
{
// Run Blynk
BlynkEdgent.run();
}
Error:
In file included from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\BlynkEdgent/BlynkEdgent.h:8,
from C:\Users\USER\AppData\Local\Temp.arduinoIDE-unsaved2024811-12764-1yirpk0.9bq1\sketch_sep11a\sketch_sep11a.ino:6:
c:\Users\USER\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp32_SSL.h:15:2: error: #error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
15 | #error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
| ^~~~~
In file included from C:\Users\USER\AppData\Local\Temp.arduinoIDE-unsaved2024811-12764-1yirpk0.9bq1\sketch_sep11a\sketch_sep11a.ino:6:
C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\BlynkEdgent/BlynkEdgent.h:35:2: error: #error "BLYNK_AUTH_TOKEN is assigned automatically when using Blynk.Edgent, please remove it from the configuration"
35 | #error "BLYNK_AUTH_TOKEN is assigned automatically when using Blynk.Edgent, please remove it from the configuration"
| ^~~~~
In file included from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\BlynkEdgent/BlynkEdgent.h:41,
from C:\Users\USER\AppData\Local\Temp.arduinoIDE-unsaved2024811-12764-1yirpk0.9bq1\sketch_sep11a\sketch_sep11a.ino:6:
C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\BlynkEdgent/ConfigStore.h:101:10: fatal error: Preferences.h: No such file or directory
101 | #include <Preferences.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
pls solve this pls pls pls pls
The text was updated successfully, but these errors were encountered: