s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266

Home Page:https://valencia.lbsfilm.at/midterm-presentation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Value changes not propagated to other clients

ESherlockP32 opened this issue · comments

Let me first thank you for your great library, I really love working with it.
My problem is a minor issue: when more than one devices are connected to my esp32 and e.g. a slider is changed on one device the changed slider position is not propagated automatically to the other devices. When the page is reloaded the new slider position is shown correctly. Is there a workaround?

Thanks in advance.

This is supposed to work. Are you sure you are on the latest version of the software?

It worked for me in a project i made about a year ago if I remember correctly.
I reinstalled ESPUI version 2.2.2 today and my arduino-esp32 version was latly updated to 2.0.14.

I think I may know what is wrong.
@s00500 Is there a target max number of clients to be supported?

I didn't set a max number of clients in my code. Is there a default one?

No there is not. I am trying to find out if there is a reasonable number to support. The problem is that there is only a single flag indicating that a value has changed and that flag does not indicate which clients need to be updated so as soon as one client gets updated, then none of the rest will. Guess which client gets updated first?

I think I may know what is wrong. @s00500 Is there a target max number of clients to be supported?

Not really, at least there should not be limits in the code

OK. I have a pull mechanism designed.

@MartinMueller2003 do you need more input here ?

Nope. I have a version that mostly works. I am testing with fragmented controls and seeing an issue.

Fixed in PR: Changes to support keeping multiple Browser Clients in sync #264