Register / Login  |  Desktop view  |  Jump to bottom of page

tcMenu Arduinio library » Webserver

Author: loczi1
09/04/2022 07:32:17
Hi Dave,

I have not found any documentation about how to setup the "ESP Webserver browser based app".
I have added on the TcMenu, generated the project files but required some files, so I figured there is a dependency: ESPAsyncWebServer needed. I need to install but there more options:
https://github.com/me-no-dev/ESPAsyncWebServer?utm_source=platformio&utm_medium=piohome
https://github.com/esphome/ESPAsyncWebServer?utm_source=platformio&utm_medium=piohome
and others..

Ok I tried the first option but another issue: 'identifier "ESP_LOGI" is undefined'
The tcMenuEspAsyncWebServer.cpp file uses, but I have no clue what I need to import now.

Thanks, Akos

Author: davetcc
09/04/2022 13:05:58
At the moment (April 2022) the ESP webserver plugin is experimental, I think it is marked experimental in the designer too. It has only been tested on ESP32 so far. That function is a logging function that is available on ESP32.

In short, it is a cut-down version of the embedCONTROL application that can run in a web browser and allows remote control of nearly all item types without any installation. It's pretty good and handles the vast majority of what the desktop version can do. It works by serving up a React.JS application that implements the same protocol as the Java API. It will take us a bit of time to ensure this is fully stable though, at the moment it infrequently triggers the ESP watchdog.

It will take another two or three releases to stabilize and fully document it.

If you want to try it now it'd be best to use an ESP32, build the menu onto the device, and then the page would be available in your browser on the IP address of your device. Just bear in mind when using it that it is an experimental developer build!

Author: loczi1
12/04/2022 14:13:00
Thanks for the info.

Author: davetcc
16/04/2022 07:36:03
BTW - any other feedback you have on the webserver version would be really useful as it's still an experimental plugin at the moment. So I'm trying to determine stability and usefulness.

Author: davetcc
04/08/2022 08:24:07
The good news for everyone is that I am in the middle of implementing enough of a webserver to handle serving the react app, it is in progress and maybe a month or two away from production. But once it goes in, the tests so far on an STM32 board show that it is extremely lightweight and very fast, it does not block other tasks from running and should run on any board with a known network adapter and room to store the files.

I know this doesn't help people struggling with the current support right now, but this one needed me to take a step back before proceeding.




Register / Login  |  Desktop view  |  Jump to top of page