Skip to content
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

Adding Control widgets to ESP32 UI fails #6

Open
benreu opened this issue Feb 22, 2021 · 1 comment
Open

Adding Control widgets to ESP32 UI fails #6

benreu opened this issue Feb 22, 2021 · 1 comment

Comments

@benreu
Copy link

benreu commented Feb 22, 2021

In the process of adding some more widgets and code to support steering wheel encoders to turn off steering, the web page no longer loads. I tried it several times, and as soon as I add widgets, the page no longer loads. Removing the added widgets makes it work again. I see the ESPUI has moved on to include a

ESPUI.jsonInitialDocumentSize = 8000; // This is the default, adjust when you have too many widgets or options

When I try to add this to esp32-aog, I get an error:

'class ESPUIClass' has no member named 'jsonInitialDocumentSize'

And if I try to switch to the https://github.com/s00500/ESPUI repository, I get an error when trying to compile the esp-aog project

'class ESPUIClass' has no member named 'updateControlAsyncTransmit'

I see the repositories cannot be merged automatically using GitHub's website. Indeed, I tried to merge locally by pulling from both repos, which gave the conflicting differences. It appears the biggest differences are syntax and variable names, with a few added functions on the eringerli repo. I'm wondering what it would take to bring these repos into sync?

@benreu
Copy link
Author

benreu commented Feb 22, 2021

So I added the missing function to the ESPUI.cpp and ESPUI.h, and upgraded the ArduinoJSON library to the latest version, and updated the code in the updateControlAsyncTransmit() for ArduinoJSON 6. Now I get a stacktrace pointing to updateControlAsyncTransmit() in idleStats.cpp line 94. Obviously something miscarried somewhere, and I am at loss how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant