This is the ERROR:
In file included from c:\Users\LMarcelinoM\Documents\Arduino\libraries\Blynk\src/BlynkApiArduino.h:14,
from c:\Users\LMarcelinoM\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp32.h:20,
from C:\Users\LMarcelinoM\Documents\Arduino\temperatura_blynk\temperatura_blynk.ino:3:
c:\Users\LMarcelinoM\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:39:6: error: #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
39 | #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
| ^~~~~
exit status 1
Compilation error: exit status 1
And this my CODE:
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#include <Adafruit_MAX31865.h>
#define RREF 430.0
#define RNOMINAL 100.0
#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID "TMPL2__PnmDb9"
#define BLYNK_TEMPLATE_NAME "rtd"
#define BLYNK_AUTH_TOKEN "xxxxxxxxx"
float temp;
char pass[x] = "xxxxxxxxxx";
char ssid[x] = "xxxxxxxxxx";
BlynkTimer timer;
Adafruit_MAX31865 thermo = Adafruit_MAX31865(5, 23, 19, 18);
BLYNK_WRITE(V0){
temp = param.asFloat();
Blynk.virtualWrite(V1, temp);
}
void myTimerEvent(){
Blynk.virtualWrite(V2, millis() / 1000);
Blynk.virtualWrite(V1, temp);
}
void setup() {
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
Serial.begin(115200);
thermo.begin(MAX31865_4WIRE);
timer.setInterval(1000L, myTimerEvent);
}
void loop() {
temp = (thermo.temperature(RNOMINAL, RREF));
temp = (temp - 1.52);
Blynk.run();
timer.run();
}
I couldn’t find the solution