---+ Bringing up the !MicroWebSrv2 server on an ESP32. The source code of !MicroWebSrv2 is available [[https://github.com/jczic/MicroWebSrv2][here ]]. We get at the code using git: <i>git clone https://github.com/jczic/MicroWebSrv2.git i</i>nto 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: <img alt="importWebSrv2.png" height="45" src="%ATTACHURL%/importWebSrv2.png" title="importWebSrv2.png" width="302" /> Now I use [[https://github.com/dhylands/rshell][rshell ]]to upload !MicroWebSrv2's full www to the esp32: rshell mkdir /pyboard/www rsync www /pyboard/www -- %USERSIG{UliRaich - 2020-01-20}% ---++ Comments %COMMENT%
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
png
importWebSrv2.png
r1
manage
4.8 K
2020-01-20 - 18:01
UliRaich
This topic: AFNOG
>
WebHome
>
AFNOGWorkshop2020
>
StepByStepInstructions
Topic revision: r1 - 2020-01-20 - UliRaich
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback