Problems with state syncing on Particle Photon

Copied state syncing snipet to my code and get compilation errors:

In file included from blynk/BlynkParticle.h:16:0,
from blynk/BlynkSimpleParticle.h:14,
from blynk/blynk.h:2,
from incubator.cpp:1:
blynk/BlynkApiParticle.h:78:6: warning: #warning “analogInputToDigitalPin not defined => Named analog pins will not work” [-Wcpp]
#warning “analogInputToDigitalPin not defined => Named analog pins will not work”
^
incubator.cpp:31:17: error: ISO C++ forbids declaration of ‘BLYNK_CONNECTED’ with no type [-fpermissive]
pinMode(heatPin, OUTPUT);
^

incubator.cpp: In function ‘int BLYNK_CONNECTED()’:
incubator.cpp:35:15: error: ‘class BlynkParticle’ has no member named ‘syncAll’
Blynk.begin(auth);
^

incubator.cpp:38:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
make[1]: *** […/build/target/user/platform-6incubator.o] Error 1
make: *** [user] Error 2

Here is my code
#include “blynk/blynk.h”
#include “RunningAverage/RunningAverage.h”

char auth[] = “**********************”;

RunningAverage myRA(60);
int samples = 0;
int ra = 0;
int heatPin = D6;
int coolPin = D5;
int tempPin = A5;
int reading[30];
float readings;
float temperatureC;
float temperatureF;
int maxTemp = 80;
int minTemp = 60;
bool isFirstConnect = true;

void setup()
{
pinMode(heatPin, OUTPUT);
pinMode(coolPin, OUTPUT);
pinMode(tempPin, INPUT);
myRA.clear();
Blynk.begin(auth);
Time.zone(-4);
//Serial.begin(9600);
}

BLYNK_CONNECTED()
{
if (isFirstConnect)
{
Blynk.syncAll();
isFirstConnect = false;
}
}

void loop()
{
RollingAverage();
Blynk.run();
blynkPins();
temperatureControl();
//serialPrint();
delay(1000);
}

void RollingAverage()
{
ra = analogRead(tempPin);
myRA.addValue(ra);
samples++;
readings = myRA.getAverage();
temperatureC = ((3.3 * (readings / 4095)) - 0.5) * 100;
temperatureF = (temperatureC * 9/5) + 32;
Blynk.virtualWrite(V0, temperatureF);
if (samples == 60) {samples = 0;}
}

void temperatureControl()
{
int second = Time.second();
if (second == 00 || second == 30)
{
if (temperatureF < minTemp)
{
digitalWrite (heatPin, LOW);
Blynk.virtualWrite(V3, 4095);
}
else if (temperatureF > minTemp)
{
digitalWrite (heatPin, HIGH);
Blynk.virtualWrite(V3, 0);
}

    if (temperatureF > maxTemp) 
    {
        digitalWrite (coolPin, LOW);
        Blynk.virtualWrite(V4, 4095);
    }
    else if (temperatureF < maxTemp) 
    {
        digitalWrite (coolPin, HIGH);
        Blynk.virtualWrite(V4, 0);
    } 
}

}

void blynkPins()
{
Blynk.virtualWrite(V5, minTemp);
Blynk.virtualWrite(V6, maxTemp);
}

BLYNK_WRITE(V1)
{
minTemp = param.asInt();
}

BLYNK_WRITE(V2)
{
maxTemp = param.asInt();
}

Hi. Particle library will get updated very soon. This will resolve the issue. Thanks for reporting.

Try using the latest Blynk version in the Web IDE.

Im having the same problem the try to use this:

BLYNK_CONNECTED() 
{
if (isFirstConnect) 
{
Blynk.syncAll();
isFirstConnect = false;
}
}

How I can fix it?

Thanks

Fixed when I delete the old library and put it again using dev online.

Thanks