Slider
Datastream
Widget Controls
How to process widget input on the device
Reading the widget value
BLYNK_WRITE(V1) // this command is listening when something is written to V1
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
if (pinValue == 1){
// do something when the control is pressed;
} else if (pinValue == 0) {
// do something when the control is released;
}
Serial.print("V1 value is: "); // printing value to serial monitor
Serial.println(pinValue);
}Changing the datastream value
Change Widget Properties
Properties you can change
Set a custom label for the widget
Show/Hide
Disable/Enable
Set a color for the widget
Change widget properties via HTTPs API
Updates the Datastream Property and all assigned Widgets
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
Sync to the latest known state
Last updated
Was this helpful?

