What are the properties for Button widget

What are the properties for Button widget ? Is it possible to ON or OFF button through hardware program. I am using Arduino Uno and ESP8266 ?

Thanks,
Krunal

@bhavsak1 do you mean button labels or button state?

Updated doc http://docs.blynk.cc/#blynk-main-operations-change-widget-properties

To be more specific :

onLabel / offLabel

Thank you for pointing out.

Thanks Dmitriy for reply. I understand that these properties are only for virtual pins hence will not work for Button widgets. Am I correct ? And Label property is also only possible for virtual pins correct?

Thanks,
Krunal

For widgets that assigned to virtual pins, yes. You can assign button to virtual pin. However this is Blynk library limitation and not server/app.

Hi Dmitriy, I tried to use ‘Blynk.setProperty(V3, “color”, BLYNK_RED);’ which has been copied from one of the example but getting below error:
‘class BlynkWiFi’ has no member named ‘setProperty’. I am suing Blynk library with v0.3.8.

Thanks,
Krunal

@bhavsak1 Hello. SetProperty is done in latest library from github. 0.3.8 is outdated a bit.

Hi @Dmitriy. From where I can download latest library from github. I can only see v0.3.8 in github.

Thanks,
Krunal

@bhavsak1 the latest, unreleased version, is always at https://github.com/blynkkk/blynk-library

Hi, I used master branch of v0.3.8 and it worked fine. I can change color as required. Thanks for your support.

Thanks,
Krunal

A post was split to a new topic: Dsable Digital button with Virtual button