Tags:
create new tag
view all tags

Bringing up the MicroWebSrv2 server on an ESP32.

The source code of MicroWebSrv2 is available here . We get at the code using git: git clone https://github.com/jczic/MicroWebSrv2.git into a working directory (in my case: /opt/ucc/afnog/afnog-2020.

I have been able to get the WEB server to work only by freezing its code into MicroPython. This I did by copying the MicroWebSrv2 sub-directory, containing the MicroWebSrv2 Python code into the modules directory of the MicroPython's esp32 port and rebuilding and flashing MicroPython.

Once this is done you should be able to import MicroPython MicroWebSrv2 module:

importWebSrv2.png

Now I use rshell to upload MicroWebSrv2's full www to the esp32:

rshell

mkdir /pyboard/www

rsync www /pyboard/www

-- Uli Raich - 2020-01-20

Comments

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng importWebSrv2.png r1 manage 4.8 K 2020-01-20 - 18:01 UliRaich  
Topic revision: r1 - 2020-01-20 - UliRaich
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback