mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-14 10:20:01 +00:00
Merge pull request #3051 from cesanta/move
move MicroPython and dashboards -> tutorials
This commit is contained in:
97 files changed
+22
-20
No files matched your search
@@ -369,7 +369,7 @@ jobs:
|
||||
example:
|
||||
- path: esp32/uart-bridge
|
||||
- path: esp32/micropython
|
||||
- path: esp8266/http-client-server
|
||||
#- path: esp8266/http-client-server
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
|
||||
@@ -246,7 +246,7 @@ jobs:
|
||||
matrix:
|
||||
example:
|
||||
- path: esp32/uart-bridge
|
||||
- path: esp8266/http-client-server
|
||||
#- path: esp8266/http-client-server
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../tutorials/http/device-dashboard
|
||||
@@ -1 +0,0 @@
|
||||
../../mongoose.c
|
||||
@@ -1 +0,0 @@
|
||||
../../mongoose.h
|
||||
@@ -1 +0,0 @@
|
||||
../../../micropython/mongoose/micropython.cmake
|
||||
@@ -1 +0,0 @@
|
||||
../../../micropython/mongoose/micropython.mk
|
||||
@@ -1 +0,0 @@
|
||||
../../../micropython/mongoose/module.c
|
||||
@@ -1 +0,0 @@
|
||||
../device-dashboard/certs
|
||||
@@ -1 +0,0 @@
|
||||
../../mongoose.c
|
||||
@@ -1 +0,0 @@
|
||||
../../mongoose.h
|
||||
@@ -1 +0,0 @@
|
||||
../../mongoose.c
|
||||
@@ -1 +0,0 @@
|
||||
../../mongoose.h
|
||||
@@ -1 +0,0 @@
|
||||
../../device-dashboard/web_root/bundle.js
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
http/device-dashboard
|
||||
@@ -38,7 +38,7 @@ web_root/main.css: web_root/index.html $(wildcard web_root/*.js)
|
||||
# Generate packed filesystem for serving Web UI
|
||||
packed_fs.c: $(wildcard web_root/*) $(wildcard certs/*) Makefile web_root/main.css web_root/bundle.js
|
||||
$(GZIP) web_root/*
|
||||
$(CC) ../../test/pack.c -o $(PACK)
|
||||
$(CC) ../../../test/pack.c -o $(PACK)
|
||||
$(PACK) web_root/* certs/* > $@
|
||||
$(GZIP) -d web_root/*
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -28,7 +28,7 @@ web_root/main.css: web_root/index.html web_root/main.js
|
||||
npx tailwindcss -o $@ --minify
|
||||
|
||||
packed_fs.c: $(wildcard web_root/*) Makefile web_root/main.css web_root/bundle.js
|
||||
$(CC) ../../test/pack.c -o $(PACK)
|
||||
$(CC) ../../../test/pack.c -o $(PACK)
|
||||
$(PACK) $(wildcard web_root/*) > $@
|
||||
|
||||
$(PROG): $(SOURCES) # Build program from sources
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -4,6 +4,8 @@ The most basic usage is in `main.py`.
|
||||
|
||||
You'll have to configure Mongoose for your desired platform, this example runs on the `unix` port and Mongoose detects it as a known architecture and hence configures itself to use sockets and time base. For other platforms, you'll have to do your homework (there's plenty of Mongoose examples for several platforms); also check respective MicroPython build instructions.
|
||||
|
||||
For more information, check this third-party article: [part 1](https://www.embeddedrelated.com/showarticle/1649.php), [part 2](https://www.embeddedrelated.com/showarticle/1670.php)
|
||||
|
||||
Check [_thread](https://docs.micropython.org/en/latest/library/_thread.html) support for more advanced usage
|
||||
|
||||
https://docs.micropython.org/en/latest/develop/cmodules.html
|
||||
File renamed without changes.
@@ -18,6 +18,4 @@ while True:
|
||||
|
||||
```
|
||||
|
||||
Check [_thread](https://docs.micropython.org/en/latest/library/_thread.html) support for more advanced usage
|
||||
|
||||
https://docs.micropython.org/en/latest/develop/cmodules.html
|
||||
[Please check the Linux example for more information and useful links](../README.md)
|
||||
File renamed without changes.
@@ -0,0 +1 @@
|
||||
../../mongoose/micropython.cmake
|
||||
@@ -0,0 +1 @@
|
||||
../../mongoose/micropython.mk
|
||||
@@ -0,0 +1 @@
|
||||
../../mongoose/module.c
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1 @@
|
||||
../../../mongoose.c
|
||||
@@ -0,0 +1 @@
|
||||
../../../mongoose.h
|
||||
File renamed without changes.
+1
-1
@@ -1,5 +1,5 @@
|
||||
all:
|
||||
make -C ../../../tutorials/http/http-server ARGS="-d $(CURDIR)"
|
||||
make -C ../../../http/http-server ARGS="-d $(CURDIR)"
|
||||
|
||||
# Bundle JS libraries (preact, preact-router, ...) into a single file
|
||||
bundle.js:
|
||||
@@ -0,0 +1 @@
|
||||
../../../http/device-dashboard/web_root/bundle.js
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1 @@
|
||||
../../../../mongoose.c
|
||||
@@ -0,0 +1 @@
|
||||
../../../../mongoose.h
|
||||
File renamed without changes.
File renamed without changes.
@@ -37,7 +37,7 @@ web_root/main.css: web_root/index.html $(wildcard web_root/*.js)
|
||||
# Generate packed filesystem for serving Web UI
|
||||
packed_fs.c: $(wildcard web_root/*) $(wildcard certs/*) Makefile web_root/main.css web_root/bundle.js
|
||||
$(GZIP) web_root/*
|
||||
$(CC) ../../test/pack.c -o $(PACK)
|
||||
$(CC) ../../../test/pack.c -o $(PACK)
|
||||
$(PACK) web_root/* certs/* > $@
|
||||
$(GZIP) -d web_root/*
|
||||
|
||||
File renamed without changes.
+1
@@ -0,0 +1 @@
|
||||
../../http/device-dashboard/certs
|
||||
File renamed without changes.
@@ -0,0 +1 @@
|
||||
../../../mongoose.c
|
||||
@@ -0,0 +1 @@
|
||||
../../../mongoose.h
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user