Level Slider
Datastream
Widget Controls
Widget Settings
How to process widget with the hardware
Reading the widget value
BLYNK_WRITE(V1) {
// Called when the datastream V1 value changes
// Assign incoming value from pin V1 to a variable
// according to the datastream data type
int pinValue = param.asInt();
// double pinValue = param.asDouble();
if (pinValue == 0){
// do something when the value is 0
} else if (pinValue > 0 && =< 128) {
// do something when the value is between 1 and 128
} else {
// print value to serial monitor
Serial.print("V1 value is: ");
Serial.println(pinValue);
}
}Changing the datastream value(s)
Change Widget Properties
Properties you can change
Change Widget Label
Set Widget Color
Disable/Enable
Show/Hide
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?

