Hi
1/ Can I get Label or color of widget back to hardware like value of widget?
2/ How to change “name” or label of item of menu widget? Example is how to add menu item, not change the label.
Thks
Hi
1/ Can I get Label or color of widget back to hardware like value of widget?
2/ How to change “name” or label of item of menu widget? Example is how to add menu item, not change the label.
Thks
Hello.
No.
The only way is to replace existing with new values.
thks Dmitriy
and how? like example: items.add(), or items.replace() ?
Blynk.setProperty(V1, "labels", "label 1", "label 2", "label 3");
Hi
I try code from example
BLYNK_WRITE(V10)
{
switch (param.asInt())
{
case 1: {
Serial.println("Item 1 selected");
} break;
case 2: {
// If item 2 is selected, change menu items...
BlynkParamAllocated items(128); // list length, in bytes
items.add("New item 1");
items.add("New item 2");
items.add("New item 3");
Blynk.setProperty(V19, "labels", items);
} break;
default:
Serial.println("Unknown item selected");
}
}
then Blynk app say “Error processing client command.” and nothing change, V10, V19 are menu widget, mine is android lastest, local sever
terminate app and re open than app take a change
Did you check my situation?
You are using outdated app or server.
mine is andoid app 1.16.4, local server 0.19.0
What library version? Is that iOS/Android?
My library version is 0.3.10, mine is andoid app ver 1.16.4, my local server version is 0.19.0
Hmm… Does
Blynk.setProperty(V19, "labels", "1", "2", "3");
works for you?
Is it works for you? Maybe it only happen with me. Value will change but not change immediately, app say “Error processing client command.”, close and re-open app than value changed
Why we cannot get label from widget to hw?
Is technique limit or policy ?
You can. See menu widget.