WebPage Button

Web Page Button is a button that opens in-app browser with a provided URL.

Examples of use

  • Show any web page inside of Blynk app: documentation, online store, etc

  • Open your web app (check the placeholders below)

  • Payment URL

Settings

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:

https://mywebapp.com/action?user=/userID/&device=/deviceID/

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

Widget Properties you can change from device

Examples below use Virtual Pin V01. Change to your pin.

URL. Change the URL to be open. You can use placeholders described above.

Blynk.setProperty(V1, "url", "https://mywebsite.com");

Disable/Enable. Widget will be greyed out on UI and users won't be able to tap on it.

Blynk.setProperty(V1, "isDisabled", true);

Show/Hide. Widget will be hidden from dashboard.

Plan your UI layout so that it looks good even if widget is hidden.

Blynk.setProperty(V1, "isHidden", true);

Last updated

Revision created

GITBOOK-1318: change request with no subject merged in GitBook