-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: is there a maximum number of controls? #92
Comments
Giving feedback to my own question: after getting feedback on one of my projects I find out you can connect to ESPUI in 2 ways (2 IP's). Using the local IP, I have none of the issues mentioned above which occurred in AP mode. |
one thing to also try is using the ESP32, as it tends to be more stable... |
OK, thanks and certainly worth a try but I just had the problem with the local IP also. Maybe the number of controls is not the issue as now it seems there is an occasional problem with the slider, here is a screenshot of the blank page and the debugger (all 340 errors are the same): BTW: I didn't check the debug messages when I thought the number of controls was the issue so it could be the same error. Controls.js:2 is this call:
and slider.js:12 this one:
in context of the slider_move function:
So apparently var number = parents.attr("id").substring(2); causes the error. What makes no sense to me is why sometimes this error occurs and other times not, with the same code. This is a screenshot of the same setup and code, after restarting (power cycle) just after I got the above errors. Now it's displaying correctly without errors: Any idea? |
I did some more testing, here posting my results (on a ESP8266 - Wemos D1 mini).
With stable I mean when you open a browser and navigate to the ESP and presh F5 (refresh) ca 10 times, how many times the controls will display or only 'Control connected' will appear. My conclusion is it still seems a problem with the number of controls and not the slider (per se). The limit, however, does not seem a fixed number but fluctuating. Note: when 64 controls is moderate stable, I mean that ca 5 out of 10 times the controls would display and 5 out of 10 not. The 1st slider ID would cause the mentioned JS error. However when using strictly number controls with min and max and a control count of 79, there would be no JS error but still only the 'Control connected' would appear. So the same issue without the error message. BTW: increasing ESPUI.jsonInitialDocumentSize had no effect, it would only trim off controls if set too small. |
yes, it is probably a stability issue with the websocket connection as well... pretty tough to investigate I guess |
Yeah, a strange issue as well. |
OK, I got back to this: how did you get the ESP32 to compile?
BTW: I'm using the latest Arduino IDE version and ESP32 board definitions. |
Did you use the master version of espui ? otherwise what line is the error in ? |
Yes and I get the error:
*C:\Users\BFM-MED\Documents\Arduino\libraries\ESPUI\src/ESPUI.h:14:22:
fatal error: LittleFS.h: No such file or directory*
Checking the espressif/arduino-esp32 it seems the latest release is from
02-10-2019, version 1.0.4.
But LittleFS support seems to be added in 2020 (
espressif/arduino-esp32#4096)
I'll check further to see if I can add
https://github.com/joltwallet/esp_littlefs
…On Thu, Oct 15, 2020 at 8:25 PM Lukas Bachschwell ***@***.***> wrote:
Did you use the master version of espui ? otherwise what line is the error
in ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#92 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWTPHCOBOSDEKW2VCWBAKTSK45DHANCNFSM4RTQNWBA>
.
|
The PR seems still open, little fs support is not yet ready for esp32, that is why I added a fix in ESPUI to fall back to SPIFFS for esp32... seems like I did not merge it, now it has some pretty nasty merge conflicts with the last PR I merged, so I will have to fix this... |
Can you test the branch fix_littlefs_esp32 ? I think I have cleaned the mess successfully... |
Master should also be fixed now, if it works I will make a release |
OK, I'll test it, just working on the ESP32. BTW, it might be of interest to you: I just got the ESP32 with the current ESPUI master and the https://github.com/lorol/LITTLEFS library to compile and upload correctly with very little editing of the code. It is working fine when not using the filesystem. And it does seem to solve the initial problem I have with the ESP8266 not showing the controls when going over roughly 70. But when I use the filesystem, I get 'control offline'. Checking the debug messages, I see this when the UI starts:
So, it seems OK, at least a file was written. And I also get the listing of all the controls.
So, it doesn't seem to connect and send the data when using the (ESP32 littlefs) filesystem. Any idea why? |
Can you test the branch fix_littlefs_esp32 ? I think I have cleaned the mess successfully... Yep, it is working fine for me (ESP-WROOM-32). Littlefs support for the future would be nice though, it is noticably faster. |
alright, but I would like to not add another dependency to the project, do you think littlefs support will get merged into arduino-esp32 eventually? |
Fair point, it only adds complicity. Still figuring out the issue with many controls & the blank screen on the ESP8266. Around 60 is buggy, no problems with over 75 on the EPS32, yet. Debug settings didn't give a clue. Note: I did run into one cosmetic issue with fix_littlefs_esp32: the 4 arrows on the pad are not displaying correctly: |
That is funkey... is this also true for the current release version and in all browsers ? otherwise please specify where it happens and where not... |
I installed the 2.0.2 version and now the pad appears correctly so that
issue is solved - apparently it only was in the temporary fix.
…On Tue, Oct 20, 2020 at 10:24 PM Lukas Bachschwell ***@***.***> wrote:
That is funkey... is this also true for the current release version and in
all browsers ? otherwise please specify where it happens and where not...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#92 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWTPHA7I5VYSXGK2IP7AH3SLXWXRANCNFSM4RTQNWBA>
.
|
Regarding the start of the issue, the max. number of controls: I spend several hours retracing and checking debug messages of the libraries ESPUI depends on but didn't run into obvious errors or encountered new settings I could adjust, like increasing buffer sizes or other limits. I tested a couple of ESP32's (WROOM32) with over 170 controls and they worked fine. So for now my conclusion would be to keep the total number of controls under 60 for an ESP8266 and use and ESP32 when you have more. |
Hi Eric, I note that you didn't mention the browser on which you are getting strange characters. The pad is constructed from a pile of CSS so I could imagine that it doesn't work on all browsers, but it seems fine everywhere I've seen it. |
Hi Ian. If I recall correctly, a while ago someone made a change to the
code / CSS.
A test with the latest version turns out fine using Chrome, Firefox and
Edge.
So I guess that issue is solved.
I'll also test if your edits solve the max controls / blank screen ESP8266
issue for me.
Eric
…On Fri, Jan 14, 2022 at 9:44 PM Ian Gray ***@***.***> wrote:
Hi Eric, I note that you didn't mention the browser on which you are
getting strange characters. The pad is constructed from a pile of CSS so I
could imagine that it doesn't work on all browsers, but it seems fine
everywhere I've seen it.
—
Reply to this email directly, view it on GitHub
<#92 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWTPHEYUDZPEL2WZVDWQODUWCDMBANCNFSM4RTQNWBA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Great. So clarify my recent tranport update is not merged yet. It is this branch: https://github.com/iangray001/ESPUI/tree/chunkupdates2 |
OK, thanks.
…On Sat, Jan 15, 2022 at 1:57 PM Ian Gray ***@***.***> wrote:
Great. So clarify my recent tranport update is not merged yet. It is this
branch: https://github.com/iangray001/ESPUI/tree/chunkupdates2
—
Reply to this email directly, view it on GitHub
<#92 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWTPHCRUINNT2G7O6VRI3LUWFVJZANCNFSM4RTQNWBA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Closing this now as I think everything in this thread is dealt with. Reopen if not. |
When using tabs, selection lists, sliders (with min and max controls), etc. the number of controls add up fast.
I notice that when I have more than ca 75 controls and/or increase ESPUI.jsonInitialDocumentSize > ca 9200, the web interface will load but I only see 'Control Connected', the rest of the webpage is empty.
Is that a limitation? Is there a workaround?
Note: I'm using an ESP8266 (Wemos D1 mini V3).
The text was updated successfully, but these errors were encountered: