Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pls Help Error #600

Open
SKR-2311 opened this issue Sep 11, 2024 · 1 comment
Open

Pls Help Error #600

SKR-2311 opened this issue Sep 11, 2024 · 1 comment

Comments

@SKR-2311
Copy link

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

@SKR-2311
Copy link
Author

Anyone Pls i have to submit it tomorrow urgent pls
help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant