Closed doom369 closed 8 years ago
@vshymanskyy any update here?
@vshymanskyy add at least few overloaded methods for now.
@vshymanskyy we got update from customer. There will be ~25 folders.
For 25 folders, it may be better to use same idea as with table widget: clear + add + add + add
@vshymanskyy it will require custom logic for setProperty
for specific widget on server and apps. That is bad way to go.
Cannot we send Hardware command?
If it's complicated, i can come up with custom wrapper to build proper command just for this widget (HW or PROPERTY, doesn't matter)
No. It will cause problems with sync.
Ok, I agree.
@vshymanskyy any updates?
In progress...
On Tue, Sep 6, 2016 at 12:39 PM, Dmitriy Dumanskiy <notifications@github.com
wrote:
@vshymanskyy https://github.com/vshymanskyy any updates?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/blynkkk/blynk-library/issues/153#issuecomment-244900691, or mute the thread https://github.com/notifications/unsubscribe-auth/ABb9lJn5rc0CTJSvqzmTYk3RR3ptsah1ks5qnTS5gaJpZM4JtFvv .
Kindest regards, Volodymyr Shymanskyy
How about this:
BlynkParamAllocated list(128); // size in bytes
list.add("New item 1");
list.add("New item 2");
list.add("New item 3");
Blynk.setProperty(V1, "items", list);
Added overloads, BlynkParamAllocated, updated example
Seems fine. What will happen in case I reach 128 bytes or more?
Nothing. it won't add new elements beyond specified limit
Blynk.setProperty(V0, "labels", "1", "2", "3", "4", "5");
We don't know the number of possible values, so it should be string array + overloaded methods.