ESPUI icon indicating copy to clipboard operation
ESPUI copied to clipboard

Porting to ESP-idf

Open ahmedelashouti opened this issue 2 years ago • 6 comments

Hallo everyone, have anyone tried to port this library to esp idf ? maybe we can help each other instead of starting from zero !

ahmedelashouti avatar Jul 14 '22 10:07 ahmedelashouti

Not to my knowledge.

I intend to play around with the IDF at some point but I haven’t so far. It shouldn’t be too hard to port this library, but the main thing would be our dependence on the Async web socket library.

iangray001 avatar Jul 16 '22 10:07 iangray001

I made a mostly working ( good enough for my purposes ) port to esp-idf. As well as removing the dependency on ESPAsyncWebServer there is Strings and ArduinoJson to handle. The code I have isn't suitable for a general use case, but if someone wants it as a starting point I can share it.

slunk-dot avatar Jul 22 '22 09:07 slunk-dot

The latest changes I made use the latest IDF in my test builds. You do need to play with the LittleFS titles a bit but beyond that it works.

MartinMueller2003 avatar Oct 17 '22 13:10 MartinMueller2003

Hi, The latest IDF seems to support Async web. Can we use this implementation scheme for this UI framework? https://github.com/espressif/esp-idf/tree/master/examples/protocols/http_server/async_handlers

WangYuxin-esp avatar May 31 '23 07:05 WangYuxin-esp

ESPUI already uses an async web server implementation. Are you asking if we can change the library to the idf supported version? Is there an upside / advantage to making this change?

MartinMueller2003 avatar May 31 '23 10:05 MartinMueller2003

Yes, some friends prefer to use C language for development under the IDF framework instead of the Arduino framework. If this UI framework can be used under IDF, some web-based solutions can be used for rapid integration development.

WangYuxin-esp avatar Jun 01 '23 01:06 WangYuxin-esp