From 5345c7260e2f33dd15b0e705f0723b48315cbcd5 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 23 Apr 2024 14:57:17 -0300 Subject: [PATCH] start moving to new skeleton --- examples/timers/README.md | 1 - examples/timers/mongoose.c | 1 - examples/timers/mongoose.h | 1 - .../windows-macos-linux/web-ui-dashboard/Makefile | 4 +--- tutorials/core/README.md | 1 + {examples => tutorials/core}/timers/Makefile | 0 tutorials/core/timers/README.md | 1 + {examples => tutorials/core}/timers/main.c | 0 tutorials/core/timers/mongoose.c | 1 + tutorials/core/timers/mongoose.h | 1 + {examples => tutorials/core}/timers/web_root/index.html | 0 tutorials/http/README.md | 1 + tutorials/mqtt/README.md | 1 + tutorials/smtp/README.md | 1 + tutorials/tcp/README.md | 1 + tutorials/tcpip_stack/README.md | 1 + tutorials/tls/README.md | 1 + tutorials/udp/README.md | 1 + tutorials/websocket/README.md | 1 + tutorials/webui/README.md | 1 + 20 files changed, 14 insertions(+), 6 deletions(-) delete mode 100644 examples/timers/README.md delete mode 120000 examples/timers/mongoose.c delete mode 120000 examples/timers/mongoose.h create mode 100644 tutorials/core/README.md rename {examples => tutorials/core}/timers/Makefile (100%) create mode 100644 tutorials/core/timers/README.md rename {examples => tutorials/core}/timers/main.c (100%) create mode 120000 tutorials/core/timers/mongoose.c create mode 120000 tutorials/core/timers/mongoose.h rename {examples => tutorials/core}/timers/web_root/index.html (100%) create mode 100644 tutorials/tcp/README.md create mode 100644 tutorials/tcpip_stack/README.md create mode 100644 tutorials/webui/README.md diff --git a/examples/timers/README.md b/examples/timers/README.md deleted file mode 100644 index 79c415ed..00000000 --- a/examples/timers/README.md +++ /dev/null @@ -1 +0,0 @@ -See detailed tutorial at https://mongoose.ws/tutorials/timers/ diff --git a/examples/timers/mongoose.c b/examples/timers/mongoose.c deleted file mode 120000 index 8ef6e62d..00000000 --- a/examples/timers/mongoose.c +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.c \ No newline at end of file diff --git a/examples/timers/mongoose.h b/examples/timers/mongoose.h deleted file mode 120000 index 488ef358..00000000 --- a/examples/timers/mongoose.h +++ /dev/null @@ -1 +0,0 @@ -../../mongoose.h \ No newline at end of file diff --git a/reference-projects/windows-macos-linux/web-ui-dashboard/Makefile b/reference-projects/windows-macos-linux/web-ui-dashboard/Makefile index 440270b9..16b7ec73 100644 --- a/reference-projects/windows-macos-linux/web-ui-dashboard/Makefile +++ b/reference-projects/windows-macos-linux/web-ui-dashboard/Makefile @@ -1,7 +1,6 @@ # Environment setup: https://mongoose.ws/documentation/tutorials/tools/ PROG ?= ./example # Program we are building -PACK ?= ./pack # Packing executable DELETE = rm -rf # Command to remove files NPX ?= npx # For generating optimised tailwind CSS OUT ?= -o $(PROG) # Compiler argument for output file @@ -16,7 +15,6 @@ CFLAGS_MONGOOSE += -DMG_ENABLE_PACKED_FS=1 ifeq ($(OS),Windows_NT) # Windows settings. Assume MinGW compiler. To use VC: make CC=cl CFLAGS=/MD OUT=/Feprog.exe PROG = example.exe # Use .exe suffix for the binary - PACK = pack.exe # Packing executable CC = gcc # Use MinGW gcc compiler CFLAGS += -lws2_32 # Link against Winsock library DELETE = cmd /C del /Q /F /S # Command prompt command to delete files @@ -48,4 +46,4 @@ packed_fs.c: $(wildcard web_root/*) $(wildcard certs/*) Makefile # Cleanup. Delete built program and all build artifacts clean: - $(DELETE) $(PROG) $(PACK) *.o *.obj *.exe *.dSYM mbedtls + $(DELETE) $(PROG) *.o *.obj *.exe *.dSYM mbedtls diff --git a/tutorials/core/README.md b/tutorials/core/README.md new file mode 100644 index 00000000..ca14c43a --- /dev/null +++ b/tutorials/core/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#core \ No newline at end of file diff --git a/examples/timers/Makefile b/tutorials/core/timers/Makefile similarity index 100% rename from examples/timers/Makefile rename to tutorials/core/timers/Makefile diff --git a/tutorials/core/timers/README.md b/tutorials/core/timers/README.md new file mode 100644 index 00000000..826fc2d3 --- /dev/null +++ b/tutorials/core/timers/README.md @@ -0,0 +1 @@ +See detailed tutorial at https://mongoose.ws/tutorials/core/timers/ diff --git a/examples/timers/main.c b/tutorials/core/timers/main.c similarity index 100% rename from examples/timers/main.c rename to tutorials/core/timers/main.c diff --git a/tutorials/core/timers/mongoose.c b/tutorials/core/timers/mongoose.c new file mode 120000 index 00000000..5e522bbc --- /dev/null +++ b/tutorials/core/timers/mongoose.c @@ -0,0 +1 @@ +../../../mongoose.c \ No newline at end of file diff --git a/tutorials/core/timers/mongoose.h b/tutorials/core/timers/mongoose.h new file mode 120000 index 00000000..ee4ac823 --- /dev/null +++ b/tutorials/core/timers/mongoose.h @@ -0,0 +1 @@ +../../../mongoose.h \ No newline at end of file diff --git a/examples/timers/web_root/index.html b/tutorials/core/timers/web_root/index.html similarity index 100% rename from examples/timers/web_root/index.html rename to tutorials/core/timers/web_root/index.html diff --git a/tutorials/http/README.md b/tutorials/http/README.md index e69de29b..c12004b9 100644 --- a/tutorials/http/README.md +++ b/tutorials/http/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#http \ No newline at end of file diff --git a/tutorials/mqtt/README.md b/tutorials/mqtt/README.md index e69de29b..bf5b3748 100644 --- a/tutorials/mqtt/README.md +++ b/tutorials/mqtt/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#mqtt \ No newline at end of file diff --git a/tutorials/smtp/README.md b/tutorials/smtp/README.md index e69de29b..00c6ebd4 100644 --- a/tutorials/smtp/README.md +++ b/tutorials/smtp/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#smtp \ No newline at end of file diff --git a/tutorials/tcp/README.md b/tutorials/tcp/README.md new file mode 100644 index 00000000..9b302f3c --- /dev/null +++ b/tutorials/tcp/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#tcp \ No newline at end of file diff --git a/tutorials/tcpip_stack/README.md b/tutorials/tcpip_stack/README.md new file mode 100644 index 00000000..bc89c042 --- /dev/null +++ b/tutorials/tcpip_stack/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#tcpip-stack \ No newline at end of file diff --git a/tutorials/tls/README.md b/tutorials/tls/README.md index e69de29b..8f31667b 100644 --- a/tutorials/tls/README.md +++ b/tutorials/tls/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#ssltls \ No newline at end of file diff --git a/tutorials/udp/README.md b/tutorials/udp/README.md index e69de29b..6a39ef95 100644 --- a/tutorials/udp/README.md +++ b/tutorials/udp/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#udp \ No newline at end of file diff --git a/tutorials/websocket/README.md b/tutorials/websocket/README.md index e69de29b..a474d7c2 100644 --- a/tutorials/websocket/README.md +++ b/tutorials/websocket/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#websocket \ No newline at end of file diff --git a/tutorials/webui/README.md b/tutorials/webui/README.md new file mode 100644 index 00000000..5e3ae3e6 --- /dev/null +++ b/tutorials/webui/README.md @@ -0,0 +1 @@ +See detailed tutorials at https://mongoose.ws/documentation/#web-ui \ No newline at end of file