error: 'Blynk' was not declared in this scope, Blynk.setProperty(mPin, "min", args...);

Hi there. I’m currently using an espressif esp32-WROOM-32 with Soft Access point. I’m also using IOS version 14.4.2. with the local esp32 server of 192.168.4.1 and my Blynk library version is 1.0.0-beta.3 . I’m encountering errors regarding Blynk that says


C:\Users\Dylan Anderton\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h: In member function 'void BlynkWidgetBase::setMin(Args ...)':
C:\Users\Dylan Anderton\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h:37:9: error: 'Blynk' was not declared in this scope
         Blynk.setProperty(mPin, "min", args...);
         ^
C:\Users\Dylan Anderton\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h: In member function 'void BlynkWidgetBase::setMax(Args ...)':
C:\Users\Dylan Anderton\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h:42:9: error: 'Blynk' was not declared in this scope
         Blynk.setProperty(mPin, "max", args...);

and here’s the code that I’m working with.


#include <WiFi.h>
#include <WiFiClient.h>

#define BLYNK_PRINT Serial

#include <WidgetRTC.h>

#include <BlynkSimpleEsp32.h>
#include <ESP32Servo.h>

Servo Food;
int gateStart = 120;
int gateEnd = 0;


void clockDisplay();  
void schedulechecker();


//LCDs
WidgetLCD lcd(V3);

// RTC
BlynkTimer timer;
WidgetRTC rtc;

char auth[] = "sUSi-Shog8_QrVjtD9vDrT4QUh_zeeeC";

char ssid[] = "zhuanti";
char pass[] = "123456789";

int scheduler=0;
int timeornot=0; //initialize feed timer to be off
int how_long=10000; //default time to dispense 10 s


void clockDisplay()
{

  String currentTime = String(hour()) + ":" + minute() + ":" + second();
  String currentDate = String(day()) + " " + month() + " " + year();
  Serial.print("Current time: ");
  Serial.print(currentTime);
  Serial.print(" ");
  Serial.print(currentDate);
  Serial.println();
  
}

BLYNK_CONNECTED() {
  // Synchronize time on connection
  rtc.begin();
}


void setup()
{
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  rtc.begin();

setSyncInterval(10 * 60);
timer.setInterval(100L, clockDisplay);
}



void loop()
{
  Blynk.run();
  timer.run();
  schedulerchecker();
}


BLYNK_WRITE(V1)
{
  int feed = param.asInt(); 
  String currentTime = String(hour()) + ":" + minute() + ":" + second();
  
  if (feed==HIGH){
  Food.write(gateStart);
  Serial.println("Feeding");
  delay(how_long); 
  Blynk.virtualWrite(V1, LOW);
  lcd.clear();
  lcd1.clear();
  lcd.print(0,0, "Time Last Fed: ");
  lcd.print(0,1, currentTime);
//turn of motor
  Food.write(gateEnd); //stop feeding
  Serial.println("Fed");
} 
}
///****Scheduler****/
BLYNK_WRITE(V6) //morning pin
{ if  (param.asInt() == 1)
  {timeornot=1;
  }
  if (param.asInt()==0)
  {timeornot=0;
  }
}

BLYNK_WRITE(V7) //evening pin
{ if  (param.asInt() == 1)
  {timeornot=1;
  }
    if (param.asInt()==0)
  {timeornot=0;
  }
}

BLYNK_WRITE(V8) // scheduler on or off
{
  if (param.asInt() == 1) {
    scheduler=1;
    timeornot=0;
    Serial.println("Scheduler is ON");
  }
  if (param.asInt() == 0){
    scheduler=0;
    Serial.println("Scheduler is Off");
    }
}

void schedulerchecker()
{
  String currentTime = String(hour()) + ":" + minute() + ":" + second();
  
  if (scheduler==1 && timeornot==1) //autofeed times
{ Blynk.notify("Auto Fed @"+ currentTime);
  Food.write(gateStart);
  Serial.println("Scheduled Feeding");
  delay(how_long); 
  Blynk.virtualWrite(V1, LOW);
  lcd.clear();
  lcd1.clear();
  lcd.print(0,0, "Time Auto Fed: ");
  lcd.print(0,1, currentTime);
//turn of motor
  Food.write(gateEnd); //stop feeding
  Serial.println("Fed");
  
}
timeornot=0;
}


BLYNK_WRITE(V5)
{ int app_slider= param.asInt();
 how_long=10*(app_slider)*10;
}

I urgently needs help and any help will be greatly appreciated. Thank you in advance.

@completenewbie I’ve deleted your “dylankeren” p[ersona and the topics that you spammed the forum with.
Please do not create another persona, otherwise your IP address and email address will be blocked.

So, on your 4th topic, you’ve realised that following the forum rules, providing the required information, and correctly formatting your code, will get you some answers…

I’d suggest that you switch to the current stable release, which is 0.6.1

If it ships with a soft access point then I think you can expect that to be overwritten when you upload your first sketch.

Pete.