Menu widget not correctly updated on web console

Hi,

when option list of a select widget is changed, menu is not correctly updated in web console
for exemple, if menu options are : 1, 2, 3, 4, then updating option list with options A, B will give a menu with options A, B, 3, 4
select options are updated correctly on iOS & android
I’m using python blynklib V1.0.0 (linux), method blynk.set_property() to set labels of select widget virtual pin

can you please confirm ?

thank you
Bruno

@Oleksii-QA could you check this issue?

Hello @brunog

I didn’t understand your case. Please explain in more detail.
You talk about 1, 2, 3, 4, options in widget, but then you describe another options A, B.
Also please attach screenshot of your widget settings

1 Like

Hi Oleksii,
using python BlinkLib :

menu1 = [‘1’, ‘2’, ‘3’, ‘4’]
blynk.set_property(PIN_MENU, ‘labels’, *menu1)

will result as expected a menu with 4 options : 1, 2, 3, 4
then further in the code :

menu2 = [‘A’, ‘B’]
blynk.set_property(PIN_MENU, ‘labels’, *menu2)

will result a menu with 4 options : A, B, 3, 4 whereas a menu with 2 options A, B was expected

same code is working fine on smartphones

up please, is the bug confirmed or is it wrong usage ?
thank you

@brunog

using python BlinkLib

sorry, I don’t know how to update value in menu widget via python

As I know we support in web:

  1. Via http api:
    single and multiple update:
https://blynk.cloud/external/api/update/property?token={token}&pin=V1&labels=label&labels=label1&labels=label2&labels=label3
  1. Via C++ lib
Blynk.setProperty(V1, "labels", "Unlocked", "Locked", "Reset");

Yes it is the same with python as with API, try :

https://blynk.cloud/external/api/update/property?token={token}&pin=V1&labels=label&labels=label1&labels=label2&labels=label3

and then :

https://blynk.cloud/external/api/update/property?token={token}&pin=V1&labels=label

then again :

https://blynk.cloud/external/api/update/property?token={token}&pin=V1&labels=label&labels=label1&labels=label2&labels=label3

and check result on web console after each request
web widget options are not correctly updated, unless page is reloaded
smartphone widget is correctly updated after each requests

@brunog I see now. Looks like no support several updates in real time. Thanks for report. We will try to fix in next deployment.

Hi Oleksii
using MQTT protocol : setting web menu widget property ‘labels’ with “A\0B\0C\0D” will give a menu with options A and B only
menu options are correctly updated on IOs & Android app
I suppose it is the same issue
thank you
Bruno