Webpage button blynk 2.0

how can I change the parameters of the webpage button widget please from the code side? I didn’t find anything in the documentation … (images, url…)
thank you

You use "offImageUrl", "onImageUrl" and "url"

The documentation has this code snippet…

BLYNK_CONNECTED()
{
  // Change Web Link Button message to "Congratulations!"
  Blynk.setProperty(V3, "offImageUrl", "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations.png");
  Blynk.setProperty(V3, "onImageUrl",  "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations_pressed.png");
  Blynk.setProperty(V3, "url", "https://docs.blynk.io/en/getting-started/template-quick-setup");
}

in the quickstart documentation

https://docs.blynk.io/en/getting-started/what-do-i-need-to-blynk/quickstart-device-code-overview#updating-web-image-button-widget

Pete.

you are god !!! I tried about 20 other keywords :frowning: … thanks

1 Like