diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e5e9fb2d..a8d220b1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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 diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index e791275c..4c7bc942 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -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 diff --git a/examples/device-dashboard b/examples/device-dashboard new file mode 120000 index 00000000..cb5f7131 --- /dev/null +++ b/examples/device-dashboard @@ -0,0 +1 @@ +../tutorials/http/device-dashboard \ No newline at end of file diff --git a/examples/device-dashboard/mongoose.c b/examples/device-dashboard/mongoose.c deleted file mode 120000 index 8ef6e62d..00000000 --- a/examples/device-dashboard/mongoose.c +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.c \ No newline at end of file diff --git a/examples/device-dashboard/mongoose.h b/examples/device-dashboard/mongoose.h deleted file mode 120000 index 488ef358..00000000 --- a/examples/device-dashboard/mongoose.h +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.h \ No newline at end of file diff --git a/examples/esp32/micropython/mongoose/micropython.cmake b/examples/esp32/micropython/mongoose/micropython.cmake deleted file mode 120000 index 34f70b20..00000000 --- a/examples/esp32/micropython/mongoose/micropython.cmake +++ /dev/null @@ -1 +0,0 @@ -../../../micropython/mongoose/micropython.cmake \ No newline at end of file diff --git a/examples/esp32/micropython/mongoose/micropython.mk b/examples/esp32/micropython/mongoose/micropython.mk deleted file mode 120000 index 0e35394e..00000000 --- a/examples/esp32/micropython/mongoose/micropython.mk +++ /dev/null @@ -1 +0,0 @@ -../../../micropython/mongoose/micropython.mk \ No newline at end of file diff --git a/examples/esp32/micropython/mongoose/module.c b/examples/esp32/micropython/mongoose/module.c deleted file mode 120000 index 6b153452..00000000 --- a/examples/esp32/micropython/mongoose/module.c +++ /dev/null @@ -1 +0,0 @@ -../../../micropython/mongoose/module.c \ No newline at end of file diff --git a/examples/modbus-dashboard/certs b/examples/modbus-dashboard/certs deleted file mode 120000 index 9a157230..00000000 --- a/examples/modbus-dashboard/certs +++ /dev/null @@ -1 +0,0 @@ -../device-dashboard/certs \ No newline at end of file diff --git a/examples/modbus-dashboard/mongoose.c b/examples/modbus-dashboard/mongoose.c deleted file mode 120000 index 8ef6e62d..00000000 --- a/examples/modbus-dashboard/mongoose.c +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.c \ No newline at end of file diff --git a/examples/modbus-dashboard/mongoose.h b/examples/modbus-dashboard/mongoose.h deleted file mode 120000 index 488ef358..00000000 --- a/examples/modbus-dashboard/mongoose.h +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.h \ No newline at end of file diff --git a/examples/wifi-router-dashboard/mongoose.c b/examples/wifi-router-dashboard/mongoose.c deleted file mode 120000 index 8ef6e62d..00000000 --- a/examples/wifi-router-dashboard/mongoose.c +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.c \ No newline at end of file diff --git a/examples/wifi-router-dashboard/mongoose.h b/examples/wifi-router-dashboard/mongoose.h deleted file mode 120000 index 488ef358..00000000 --- a/examples/wifi-router-dashboard/mongoose.h +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.h \ No newline at end of file diff --git a/examples/wifi-router-dashboard/web_root/bundle.js b/examples/wifi-router-dashboard/web_root/bundle.js deleted file mode 120000 index f4df0f35..00000000 --- a/examples/wifi-router-dashboard/web_root/bundle.js +++ /dev/null @@ -1 +0,0 @@ -../../device-dashboard/web_root/bundle.js \ No newline at end of file diff --git a/tutorials/device-dashboard b/tutorials/device-dashboard new file mode 120000 index 00000000..dc77ff52 --- /dev/null +++ b/tutorials/device-dashboard @@ -0,0 +1 @@ +http/device-dashboard \ No newline at end of file diff --git a/examples/device-dashboard/Makefile b/tutorials/http/device-dashboard/Makefile similarity index 98% rename from examples/device-dashboard/Makefile rename to tutorials/http/device-dashboard/Makefile index 64c3f27b..a5edb619 100644 --- a/examples/device-dashboard/Makefile +++ b/tutorials/http/device-dashboard/Makefile @@ -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/* diff --git a/examples/device-dashboard/README.md b/tutorials/http/device-dashboard/README.md similarity index 100% rename from examples/device-dashboard/README.md rename to tutorials/http/device-dashboard/README.md diff --git a/examples/device-dashboard/certs/server_cert.pem b/tutorials/http/device-dashboard/certs/server_cert.pem similarity index 100% rename from examples/device-dashboard/certs/server_cert.pem rename to tutorials/http/device-dashboard/certs/server_cert.pem diff --git a/examples/device-dashboard/certs/server_key.pem b/tutorials/http/device-dashboard/certs/server_key.pem similarity index 100% rename from examples/device-dashboard/certs/server_key.pem rename to tutorials/http/device-dashboard/certs/server_key.pem diff --git a/examples/device-dashboard/main.c b/tutorials/http/device-dashboard/main.c similarity index 100% rename from examples/device-dashboard/main.c rename to tutorials/http/device-dashboard/main.c diff --git a/examples/device-dashboard/mbedtls_config.h b/tutorials/http/device-dashboard/mbedtls_config.h similarity index 100% rename from examples/device-dashboard/mbedtls_config.h rename to tutorials/http/device-dashboard/mbedtls_config.h diff --git a/examples/micropython/mongoose/mongoose.c b/tutorials/http/device-dashboard/mongoose.c similarity index 100% rename from examples/micropython/mongoose/mongoose.c rename to tutorials/http/device-dashboard/mongoose.c diff --git a/examples/micropython/mongoose/mongoose.h b/tutorials/http/device-dashboard/mongoose.h similarity index 100% rename from examples/micropython/mongoose/mongoose.h rename to tutorials/http/device-dashboard/mongoose.h diff --git a/examples/device-dashboard/net.c b/tutorials/http/device-dashboard/net.c similarity index 100% rename from examples/device-dashboard/net.c rename to tutorials/http/device-dashboard/net.c diff --git a/examples/device-dashboard/net.h b/tutorials/http/device-dashboard/net.h similarity index 100% rename from examples/device-dashboard/net.h rename to tutorials/http/device-dashboard/net.h diff --git a/examples/device-dashboard/packed_fs.c b/tutorials/http/device-dashboard/packed_fs.c similarity index 100% rename from examples/device-dashboard/packed_fs.c rename to tutorials/http/device-dashboard/packed_fs.c diff --git a/examples/device-dashboard/tailwind.config.js b/tutorials/http/device-dashboard/tailwind.config.js similarity index 100% rename from examples/device-dashboard/tailwind.config.js rename to tutorials/http/device-dashboard/tailwind.config.js diff --git a/examples/device-dashboard/web_root/bundle.js b/tutorials/http/device-dashboard/web_root/bundle.js similarity index 100% rename from examples/device-dashboard/web_root/bundle.js rename to tutorials/http/device-dashboard/web_root/bundle.js diff --git a/examples/device-dashboard/web_root/components.js b/tutorials/http/device-dashboard/web_root/components.js similarity index 100% rename from examples/device-dashboard/web_root/components.js rename to tutorials/http/device-dashboard/web_root/components.js diff --git a/examples/device-dashboard/web_root/history.min.js b/tutorials/http/device-dashboard/web_root/history.min.js similarity index 100% rename from examples/device-dashboard/web_root/history.min.js rename to tutorials/http/device-dashboard/web_root/history.min.js diff --git a/examples/device-dashboard/web_root/index.html b/tutorials/http/device-dashboard/web_root/index.html similarity index 100% rename from examples/device-dashboard/web_root/index.html rename to tutorials/http/device-dashboard/web_root/index.html diff --git a/examples/device-dashboard/web_root/main.css b/tutorials/http/device-dashboard/web_root/main.css similarity index 100% rename from examples/device-dashboard/web_root/main.css rename to tutorials/http/device-dashboard/web_root/main.css diff --git a/examples/device-dashboard/web_root/main.js b/tutorials/http/device-dashboard/web_root/main.js similarity index 100% rename from examples/device-dashboard/web_root/main.js rename to tutorials/http/device-dashboard/web_root/main.js diff --git a/examples/wifi-router-dashboard/Makefile b/tutorials/http/wifi-router-dashboard/Makefile similarity index 97% rename from examples/wifi-router-dashboard/Makefile rename to tutorials/http/wifi-router-dashboard/Makefile index 805aa6e3..40166d8f 100644 --- a/examples/wifi-router-dashboard/Makefile +++ b/tutorials/http/wifi-router-dashboard/Makefile @@ -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 diff --git a/examples/wifi-router-dashboard/README.md b/tutorials/http/wifi-router-dashboard/README.md similarity index 100% rename from examples/wifi-router-dashboard/README.md rename to tutorials/http/wifi-router-dashboard/README.md diff --git a/examples/wifi-router-dashboard/main.c b/tutorials/http/wifi-router-dashboard/main.c similarity index 100% rename from examples/wifi-router-dashboard/main.c rename to tutorials/http/wifi-router-dashboard/main.c diff --git a/examples/mqtt-dashboard/device/mongoose.c b/tutorials/http/wifi-router-dashboard/mongoose.c similarity index 100% rename from examples/mqtt-dashboard/device/mongoose.c rename to tutorials/http/wifi-router-dashboard/mongoose.c diff --git a/examples/mqtt-dashboard/device/mongoose.h b/tutorials/http/wifi-router-dashboard/mongoose.h similarity index 100% rename from examples/mqtt-dashboard/device/mongoose.h rename to tutorials/http/wifi-router-dashboard/mongoose.h diff --git a/examples/wifi-router-dashboard/net.c b/tutorials/http/wifi-router-dashboard/net.c similarity index 100% rename from examples/wifi-router-dashboard/net.c rename to tutorials/http/wifi-router-dashboard/net.c diff --git a/examples/wifi-router-dashboard/net.h b/tutorials/http/wifi-router-dashboard/net.h similarity index 100% rename from examples/wifi-router-dashboard/net.h rename to tutorials/http/wifi-router-dashboard/net.h diff --git a/examples/wifi-router-dashboard/packed_fs.c b/tutorials/http/wifi-router-dashboard/packed_fs.c similarity index 100% rename from examples/wifi-router-dashboard/packed_fs.c rename to tutorials/http/wifi-router-dashboard/packed_fs.c diff --git a/examples/modbus-dashboard/tailwind.config.js b/tutorials/http/wifi-router-dashboard/tailwind.config.js similarity index 100% rename from examples/modbus-dashboard/tailwind.config.js rename to tutorials/http/wifi-router-dashboard/tailwind.config.js diff --git a/examples/mqtt-dashboard/dashboard/bundle.js b/tutorials/http/wifi-router-dashboard/web_root/bundle.js similarity index 100% rename from examples/mqtt-dashboard/dashboard/bundle.js rename to tutorials/http/wifi-router-dashboard/web_root/bundle.js diff --git a/examples/wifi-router-dashboard/web_root/components.js b/tutorials/http/wifi-router-dashboard/web_root/components.js similarity index 100% rename from examples/wifi-router-dashboard/web_root/components.js rename to tutorials/http/wifi-router-dashboard/web_root/components.js diff --git a/examples/wifi-router-dashboard/web_root/history.min.js b/tutorials/http/wifi-router-dashboard/web_root/history.min.js similarity index 100% rename from examples/wifi-router-dashboard/web_root/history.min.js rename to tutorials/http/wifi-router-dashboard/web_root/history.min.js diff --git a/examples/wifi-router-dashboard/web_root/index.html b/tutorials/http/wifi-router-dashboard/web_root/index.html similarity index 100% rename from examples/wifi-router-dashboard/web_root/index.html rename to tutorials/http/wifi-router-dashboard/web_root/index.html diff --git a/examples/wifi-router-dashboard/web_root/main.css b/tutorials/http/wifi-router-dashboard/web_root/main.css similarity index 100% rename from examples/wifi-router-dashboard/web_root/main.css rename to tutorials/http/wifi-router-dashboard/web_root/main.css diff --git a/examples/wifi-router-dashboard/web_root/main.js b/tutorials/http/wifi-router-dashboard/web_root/main.js similarity index 100% rename from examples/wifi-router-dashboard/web_root/main.js rename to tutorials/http/wifi-router-dashboard/web_root/main.js diff --git a/examples/micropython/Makefile b/tutorials/micropython/Makefile similarity index 100% rename from examples/micropython/Makefile rename to tutorials/micropython/Makefile diff --git a/examples/micropython/README.md b/tutorials/micropython/README.md similarity index 77% rename from examples/micropython/README.md rename to tutorials/micropython/README.md index 1d03963b..9e60ff68 100644 --- a/examples/micropython/README.md +++ b/tutorials/micropython/README.md @@ -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 diff --git a/examples/esp32/micropython/Makefile b/tutorials/micropython/esp32/Makefile similarity index 100% rename from examples/esp32/micropython/Makefile rename to tutorials/micropython/esp32/Makefile diff --git a/examples/esp32/micropython/README.md b/tutorials/micropython/esp32/README.md similarity index 66% rename from examples/esp32/micropython/README.md rename to tutorials/micropython/esp32/README.md index 683fa338..a88d5d25 100644 --- a/examples/esp32/micropython/README.md +++ b/tutorials/micropython/esp32/README.md @@ -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) diff --git a/examples/esp32/micropython/mongoose/main.c b/tutorials/micropython/esp32/mongoose/main.c similarity index 100% rename from examples/esp32/micropython/mongoose/main.c rename to tutorials/micropython/esp32/mongoose/main.c diff --git a/tutorials/micropython/esp32/mongoose/micropython.cmake b/tutorials/micropython/esp32/mongoose/micropython.cmake new file mode 120000 index 00000000..8591105f --- /dev/null +++ b/tutorials/micropython/esp32/mongoose/micropython.cmake @@ -0,0 +1 @@ +../../mongoose/micropython.cmake \ No newline at end of file diff --git a/tutorials/micropython/esp32/mongoose/micropython.mk b/tutorials/micropython/esp32/mongoose/micropython.mk new file mode 120000 index 00000000..5a65830c --- /dev/null +++ b/tutorials/micropython/esp32/mongoose/micropython.mk @@ -0,0 +1 @@ +../../mongoose/micropython.mk \ No newline at end of file diff --git a/tutorials/micropython/esp32/mongoose/module.c b/tutorials/micropython/esp32/mongoose/module.c new file mode 120000 index 00000000..6596b45f --- /dev/null +++ b/tutorials/micropython/esp32/mongoose/module.c @@ -0,0 +1 @@ +../../mongoose/module.c \ No newline at end of file diff --git a/examples/esp32/micropython/mongoose/mongoose.c b/tutorials/micropython/esp32/mongoose/mongoose.c similarity index 100% rename from examples/esp32/micropython/mongoose/mongoose.c rename to tutorials/micropython/esp32/mongoose/mongoose.c diff --git a/examples/esp32/micropython/mongoose/mongoose.h b/tutorials/micropython/esp32/mongoose/mongoose.h similarity index 100% rename from examples/esp32/micropython/mongoose/mongoose.h rename to tutorials/micropython/esp32/mongoose/mongoose.h diff --git a/examples/esp32/micropython/mongoose/mongoose_config.h b/tutorials/micropython/esp32/mongoose/mongoose_config.h similarity index 100% rename from examples/esp32/micropython/mongoose/mongoose_config.h rename to tutorials/micropython/esp32/mongoose/mongoose_config.h diff --git a/examples/micropython/main.py b/tutorials/micropython/main.py similarity index 100% rename from examples/micropython/main.py rename to tutorials/micropython/main.py diff --git a/examples/micropython/mongoose/main.c b/tutorials/micropython/mongoose/main.c similarity index 100% rename from examples/micropython/mongoose/main.c rename to tutorials/micropython/mongoose/main.c diff --git a/examples/micropython/mongoose/micropython.cmake b/tutorials/micropython/mongoose/micropython.cmake similarity index 100% rename from examples/micropython/mongoose/micropython.cmake rename to tutorials/micropython/mongoose/micropython.cmake diff --git a/examples/micropython/mongoose/micropython.mk b/tutorials/micropython/mongoose/micropython.mk similarity index 100% rename from examples/micropython/mongoose/micropython.mk rename to tutorials/micropython/mongoose/micropython.mk diff --git a/examples/micropython/mongoose/module.c b/tutorials/micropython/mongoose/module.c similarity index 100% rename from examples/micropython/mongoose/module.c rename to tutorials/micropython/mongoose/module.c diff --git a/tutorials/micropython/mongoose/mongoose.c b/tutorials/micropython/mongoose/mongoose.c new file mode 120000 index 00000000..5e522bbc --- /dev/null +++ b/tutorials/micropython/mongoose/mongoose.c @@ -0,0 +1 @@ +../../../mongoose.c \ No newline at end of file diff --git a/tutorials/micropython/mongoose/mongoose.h b/tutorials/micropython/mongoose/mongoose.h new file mode 120000 index 00000000..ee4ac823 --- /dev/null +++ b/tutorials/micropython/mongoose/mongoose.h @@ -0,0 +1 @@ +../../../mongoose.h \ No newline at end of file diff --git a/examples/mqtt-dashboard/Makefile b/tutorials/mqtt/mqtt-dashboard/Makefile similarity index 100% rename from examples/mqtt-dashboard/Makefile rename to tutorials/mqtt/mqtt-dashboard/Makefile diff --git a/examples/mqtt-dashboard/dashboard/Makefile b/tutorials/mqtt/mqtt-dashboard/dashboard/Makefile similarity index 84% rename from examples/mqtt-dashboard/dashboard/Makefile rename to tutorials/mqtt/mqtt-dashboard/dashboard/Makefile index 405bfae2..da015c3c 100644 --- a/examples/mqtt-dashboard/dashboard/Makefile +++ b/tutorials/mqtt/mqtt-dashboard/dashboard/Makefile @@ -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: diff --git a/tutorials/mqtt/mqtt-dashboard/dashboard/bundle.js b/tutorials/mqtt/mqtt-dashboard/dashboard/bundle.js new file mode 120000 index 00000000..31d0e0b5 --- /dev/null +++ b/tutorials/mqtt/mqtt-dashboard/dashboard/bundle.js @@ -0,0 +1 @@ +../../../http/device-dashboard/web_root/bundle.js \ No newline at end of file diff --git a/examples/mqtt-dashboard/dashboard/index.html b/tutorials/mqtt/mqtt-dashboard/dashboard/index.html similarity index 100% rename from examples/mqtt-dashboard/dashboard/index.html rename to tutorials/mqtt/mqtt-dashboard/dashboard/index.html diff --git a/examples/mqtt-dashboard/dashboard/main.css b/tutorials/mqtt/mqtt-dashboard/dashboard/main.css similarity index 100% rename from examples/mqtt-dashboard/dashboard/main.css rename to tutorials/mqtt/mqtt-dashboard/dashboard/main.css diff --git a/examples/mqtt-dashboard/dashboard/main.js b/tutorials/mqtt/mqtt-dashboard/dashboard/main.js similarity index 100% rename from examples/mqtt-dashboard/dashboard/main.js rename to tutorials/mqtt/mqtt-dashboard/dashboard/main.js diff --git a/examples/mqtt-dashboard/dashboard/tailwind.config.js b/tutorials/mqtt/mqtt-dashboard/dashboard/tailwind.config.js similarity index 100% rename from examples/mqtt-dashboard/dashboard/tailwind.config.js rename to tutorials/mqtt/mqtt-dashboard/dashboard/tailwind.config.js diff --git a/examples/mqtt-dashboard/device/Makefile b/tutorials/mqtt/mqtt-dashboard/device/Makefile similarity index 100% rename from examples/mqtt-dashboard/device/Makefile rename to tutorials/mqtt/mqtt-dashboard/device/Makefile diff --git a/examples/mqtt-dashboard/device/README.md b/tutorials/mqtt/mqtt-dashboard/device/README.md similarity index 100% rename from examples/mqtt-dashboard/device/README.md rename to tutorials/mqtt/mqtt-dashboard/device/README.md diff --git a/examples/mqtt-dashboard/device/hal.c b/tutorials/mqtt/mqtt-dashboard/device/hal.c similarity index 100% rename from examples/mqtt-dashboard/device/hal.c rename to tutorials/mqtt/mqtt-dashboard/device/hal.c diff --git a/examples/mqtt-dashboard/device/hal.h b/tutorials/mqtt/mqtt-dashboard/device/hal.h similarity index 100% rename from examples/mqtt-dashboard/device/hal.h rename to tutorials/mqtt/mqtt-dashboard/device/hal.h diff --git a/examples/mqtt-dashboard/device/main.c b/tutorials/mqtt/mqtt-dashboard/device/main.c similarity index 100% rename from examples/mqtt-dashboard/device/main.c rename to tutorials/mqtt/mqtt-dashboard/device/main.c diff --git a/tutorials/mqtt/mqtt-dashboard/device/mongoose.c b/tutorials/mqtt/mqtt-dashboard/device/mongoose.c new file mode 120000 index 00000000..7a2752cb --- /dev/null +++ b/tutorials/mqtt/mqtt-dashboard/device/mongoose.c @@ -0,0 +1 @@ +../../../../mongoose.c \ No newline at end of file diff --git a/tutorials/mqtt/mqtt-dashboard/device/mongoose.h b/tutorials/mqtt/mqtt-dashboard/device/mongoose.h new file mode 120000 index 00000000..daff1633 --- /dev/null +++ b/tutorials/mqtt/mqtt-dashboard/device/mongoose.h @@ -0,0 +1 @@ +../../../../mongoose.h \ No newline at end of file diff --git a/examples/mqtt-dashboard/device/net.c b/tutorials/mqtt/mqtt-dashboard/device/net.c similarity index 100% rename from examples/mqtt-dashboard/device/net.c rename to tutorials/mqtt/mqtt-dashboard/device/net.c diff --git a/examples/mqtt-dashboard/device/net.h b/tutorials/mqtt/mqtt-dashboard/device/net.h similarity index 100% rename from examples/mqtt-dashboard/device/net.h rename to tutorials/mqtt/mqtt-dashboard/device/net.h diff --git a/examples/modbus-dashboard/Makefile b/tutorials/tcp/modbus-dashboard/Makefile similarity index 98% rename from examples/modbus-dashboard/Makefile rename to tutorials/tcp/modbus-dashboard/Makefile index 50cf3d24..014edd43 100644 --- a/examples/modbus-dashboard/Makefile +++ b/tutorials/tcp/modbus-dashboard/Makefile @@ -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/* diff --git a/examples/modbus-dashboard/README.md b/tutorials/tcp/modbus-dashboard/README.md similarity index 100% rename from examples/modbus-dashboard/README.md rename to tutorials/tcp/modbus-dashboard/README.md diff --git a/tutorials/tcp/modbus-dashboard/certs b/tutorials/tcp/modbus-dashboard/certs new file mode 120000 index 00000000..a5a35151 --- /dev/null +++ b/tutorials/tcp/modbus-dashboard/certs @@ -0,0 +1 @@ +../../http/device-dashboard/certs \ No newline at end of file diff --git a/examples/modbus-dashboard/main.c b/tutorials/tcp/modbus-dashboard/main.c similarity index 100% rename from examples/modbus-dashboard/main.c rename to tutorials/tcp/modbus-dashboard/main.c diff --git a/tutorials/tcp/modbus-dashboard/mongoose.c b/tutorials/tcp/modbus-dashboard/mongoose.c new file mode 120000 index 00000000..5e522bbc --- /dev/null +++ b/tutorials/tcp/modbus-dashboard/mongoose.c @@ -0,0 +1 @@ +../../../mongoose.c \ No newline at end of file diff --git a/tutorials/tcp/modbus-dashboard/mongoose.h b/tutorials/tcp/modbus-dashboard/mongoose.h new file mode 120000 index 00000000..ee4ac823 --- /dev/null +++ b/tutorials/tcp/modbus-dashboard/mongoose.h @@ -0,0 +1 @@ +../../../mongoose.h \ No newline at end of file diff --git a/examples/modbus-dashboard/net.c b/tutorials/tcp/modbus-dashboard/net.c similarity index 100% rename from examples/modbus-dashboard/net.c rename to tutorials/tcp/modbus-dashboard/net.c diff --git a/examples/modbus-dashboard/net.h b/tutorials/tcp/modbus-dashboard/net.h similarity index 100% rename from examples/modbus-dashboard/net.h rename to tutorials/tcp/modbus-dashboard/net.h diff --git a/examples/modbus-dashboard/packed_fs.c b/tutorials/tcp/modbus-dashboard/packed_fs.c similarity index 100% rename from examples/modbus-dashboard/packed_fs.c rename to tutorials/tcp/modbus-dashboard/packed_fs.c diff --git a/examples/wifi-router-dashboard/tailwind.config.js b/tutorials/tcp/modbus-dashboard/tailwind.config.js similarity index 100% rename from examples/wifi-router-dashboard/tailwind.config.js rename to tutorials/tcp/modbus-dashboard/tailwind.config.js diff --git a/examples/modbus-dashboard/web_root/bundle.js b/tutorials/tcp/modbus-dashboard/web_root/bundle.js similarity index 100% rename from examples/modbus-dashboard/web_root/bundle.js rename to tutorials/tcp/modbus-dashboard/web_root/bundle.js diff --git a/examples/modbus-dashboard/web_root/history.min.js b/tutorials/tcp/modbus-dashboard/web_root/history.min.js similarity index 100% rename from examples/modbus-dashboard/web_root/history.min.js rename to tutorials/tcp/modbus-dashboard/web_root/history.min.js diff --git a/examples/modbus-dashboard/web_root/index.html b/tutorials/tcp/modbus-dashboard/web_root/index.html similarity index 100% rename from examples/modbus-dashboard/web_root/index.html rename to tutorials/tcp/modbus-dashboard/web_root/index.html diff --git a/examples/modbus-dashboard/web_root/main.css b/tutorials/tcp/modbus-dashboard/web_root/main.css similarity index 100% rename from examples/modbus-dashboard/web_root/main.css rename to tutorials/tcp/modbus-dashboard/web_root/main.css diff --git a/examples/modbus-dashboard/web_root/main.js b/tutorials/tcp/modbus-dashboard/web_root/main.js similarity index 100% rename from examples/modbus-dashboard/web_root/main.js rename to tutorials/tcp/modbus-dashboard/web_root/main.js