Sorry, we didn’t understand your question from the first time :). It’s doable.
We currently don’t have:
Blynk.virtualRead(4)
You need to declare a global variable and put slider value to this variable:
BLYNK_WRITE(V4) // Slider widget writing to V4
{
sliderValue = param.asInt(); //sliderValue is a global variable you declared before void setup()
}
//then use your code
BLYNK_WRITE(V5) //Set Temperature Button
{
if ( param.asInt() == 1 )
{
Serial.print("Pressed Button Set Temp. Temp of slider is:");
Serial.println(sliderValue);
}
}