Last updated
Last updated
Web Page Button is a button that opens in-app browser with a provided URL.
Show any web page inside of Blynk app: documentation, online store, etc
Open your web app (check the placeholders below)
Payment URL
Link Name: text to be displayed on the button
URL: specifies which URL should be opened in the browser.
You can use placeholders for URL:
deviceID
- device ID in Blynk
userID
- ID of the user pressing the button
userEmail
- email of the user pressing the button
Example URL with placeholders:
Lock Size: when On, size of the button will be relative to the text
Open in browser: When ON, pressing the button will open the OS browser. User will leave the Blynk app
You can change certain properties of the Widget from your hardware. For that, use this command:
Where:
vPin
is: virtual pin number the widget is assigned to
widgetProperty
: property you want to change
propertyValue
: value of the property you want to change
Don't put Blynk.setProperty()
into the void loop()
as it can cause a flood of messages and your hardware will be disconnected. Send such updates only when necessary, or use timers.
Widget will be hidden from dashboard. Design your UI so that it doesn't look weird when there is no widget.
Plan your UI layout so that it looks good even if widget is hidden.
Widget will be greyed out on UI and users won't be able to tap on it.
You can change the properties onLabel, offLabel, onColor, offColor, onBackColor, offBackColor, label, color, isDisabled, isHidden, and page of the widget from your hardware, or via an . The color hexadecimal values in the HTTP API URL must include the hash # character urlencoded as %23.
Change the URL to be open. You can use placeholders described .
You can update your hardware to the latest datastream value from Blynk.Cloud after your hardware went offline, and then came online again. Use Blynk.syncVirtual()
to update a single virtual pin, or Blynk.syncAll()
to update all virtual pins. See for more details.