Radial Gauge
Datastream
Widget Controls
How to process widget input on the device
Reading the widget value(s)
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();
// float pinValue = param.asFloat()
// double pinValue = param.asDouble();
// String pinValue = param.asStr()
// String pinValue = param.asString()
// String pinValue = param.getBuffer() // raw data from param buffer
// int value = param.getLength() // raw data from param buffer
if (pinValue == 1){
// do something when the value is 1
} else if (pinValue == 0) {
// do something when the value is 0
}
Serial.print("V1 value is: "); // print value to serial monitor
Serial.println(pinValue);
}Changing the datastream value
Change Widget Properties
Properties you can change
Change Label
Set 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?

