Hello..can anyone help me please i am beginner with esp32 and i have to complete it's urgent......i am trying to compile my sketch.....but one error continuously occurs
Error compiling for board ESP32 Dev Module......i have tried many different things like i have installed core zip files by follow this link Best practise installing ESP8266 & ESP32 on Windows - Everything ESP8266
below is my sketch
#include <Arduino.h>
#include "BluetoothSerial.h"
#include <IRremote.h>
#include <IRac.h>
#include <IRrecv.h>
#include <IRsend.h>
#include <IRtimer.h>
#include <IRutils.h>
#include <ir_NEC.h>
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run make menuconfig to and enable it
#endif
#define NEC_BITS 32
#define DUTY_CYCLE 1/3 // Carrier duty cycle
#define PERIOD 26 // 38kHz, 1/38kHz =~ 26us
#define ACTIVE_HIGH (PERIOD * DUTY_CYCLE)
#define ACTIVE_LOW (PERIOD - (PERIOD * DUTY_CYCLE))
#define Power 0xFBD22D
#define Up 0xFBE817
#define Down 0xFB38C7
#define TOPBIT 0x80000000
#define NEC_HDR_MARK 9000
#define NEC_HDR_SPACE 4500
#define NEC_BIT_MARK 560
#define NEC_ONE_SPACE 1690
#define NEC_ZERO_SPACE 560
char code;
BluetoothSerial SerialBT;
//int incoming;
char incomingChar;// received value will be stored as CHAR in this variable
const int OutputPin =13;
void setup() {
Serial.begin(9600); //Start Serial monitor in 9600
SerialBT.begin("ESP32test"); //Bluetooth device name
Serial.println("The device started, now you can pair it with bluetooth!");
Serial.println("To Power send: a");//print on serial monitor
Serial.println("To Up send: b");
Serial.println("To Down send: c");
pinMode(OutputPin, OUTPUT);
}
void sendNEC(unsigned long data, int nbits) {
mark(NEC_HDR_MARK);
space(NEC_HDR_SPACE);
for (int i = 0; i < nbits; i++) {
if (data & TOPBIT) {
mark(NEC_BIT_MARK);
space(NEC_ONE_SPACE);
}
else {
mark(NEC_BIT_MARK);
space(NEC_ZERO_SPACE);
}
data <<= 1;
}
mark(NEC_BIT_MARK);
space(NEC_HDR_SPACE);
mark(NEC_BIT_MARK);
space(0);
}
void mark(int time) {
//inverting the signal
digitalWrite(OutputPin, LOW);
delayMicroseconds(time); //digitalwrite removes the modulation to provide a demodulated signal
}
void space(int time) {
digitalWrite(OutputPin, HIGH);
delayMicroseconds(time);
}
void loop() {
incomingChar =(char)SerialBT.read();
if (Serial.available())
{
SerialBT.write(Serial.read());
}
if (SerialBT.available())
{code = SerialBT.read(); //Read what we recevive
Serial.print("Received:");
//Serial.println(receivedChar);//print on serial monitor
//Serial.println(code);
//Serial.println(incoming);
SerialBT.print ("Received:");//print on serial monitor
//SerialBT.println(receivedChar);//print on serial monitor
if(code == Power)
{Serial.println("Power received");
sendNEC(Power, 32);
Serial.println(code);
if(code == Up )
{digitalWrite(OutputPin, HIGH);
Serial.println("Up received");
sendNEC(Up, 32);}
if(code == Down)
{digitalWrite(OutputPin, LOW);
Serial.println("Down received");
sendNEC(Down, 32);}
}
else
{
sendNEC(Power, 32);
}
delay(20);
}
}