Music Player
Datastream
Widget Controls
How to process button input on the device
Reading the widget value(s)
BLYNK_WRITE(V2) {
// Called when the datastream virtual pin V2 is updated
// by Blynk.Console, Blynk.App, or HTTP API.
String value = param.asStr();
// OR:
//String value = param.asString();
if (value == "play") {
Serial.println("'play' button pressed");
} else if (value == "stop") {
Serial.println("'stop' button pressed");
} else if (value == "prev") {
Serial.println("'prev' button pressed");
} else if (value == "next") {
Serial.println("'next' button pressed");
} else {
Serial.print("V2 = '");
Serial.print(value);
Serial.println("'");
}
} // BLYNK_WRITE()Changing the datastream values
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?

