From a0735829ae1091dfec60f85315b72c0a12be0834 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 20 Oct 2024 00:41:23 +0200 Subject: [PATCH] play around with file structure, first webserving tests --- Arduino/CanGrow/CanGrow.ino | 2 + Arduino/CanGrow/include/CanGrow.h | 3 ++ Arduino/CanGrow/include/CanGrow_Core.h | 2 +- Arduino/CanGrow/include/CanGrow_Webserver.h | 28 ++++++++++++++ Arduino/CanGrow/include/Webserver/.h | 0 .../include/Webserver/File_cangrow_JS.h | 37 +++++++++++++++++++ Arduino/CanGrow/include/Webserver/Page_grow.h | 30 +++++++++++++++ .../include/Webserver/Page_grow_HTML.h | 28 ++++++++++++++ Arduino/CanGrow/include/Webserver/Page_root.h | 34 +++++++++++++++++ .../include/Webserver/Page_root_HTML.h | 33 +++++++++++++++++ .../CanGrow/include/Webserver/Page_settings.h | 30 +++++++++++++++ .../include/Webserver/Page_settings_HTML.h | 28 ++++++++++++++ Arduino/CanGrow/include/Webserver/Page_wifi.h | 30 +++++++++++++++ .../include/Webserver/Page_wifi_HTML.h | 28 ++++++++++++++ Arduino/CanGrow/include/Webserver/footer.h | 30 +++++++++++++++ .../CanGrow/include/Webserver/footer_HTML.h | 28 ++++++++++++++ Arduino/CanGrow/include/Webserver/header.h | 30 +++++++++++++++ .../CanGrow/include/Webserver/header_HTML.h | 28 ++++++++++++++ 18 files changed, 428 insertions(+), 1 deletion(-) create mode 100644 Arduino/CanGrow/include/Webserver/.h create mode 100644 Arduino/CanGrow/include/Webserver/File_cangrow_JS.h create mode 100644 Arduino/CanGrow/include/Webserver/Page_grow.h create mode 100644 Arduino/CanGrow/include/Webserver/Page_grow_HTML.h create mode 100644 Arduino/CanGrow/include/Webserver/Page_root.h create mode 100644 Arduino/CanGrow/include/Webserver/Page_root_HTML.h create mode 100644 Arduino/CanGrow/include/Webserver/Page_settings.h create mode 100644 Arduino/CanGrow/include/Webserver/Page_settings_HTML.h create mode 100644 Arduino/CanGrow/include/Webserver/Page_wifi.h create mode 100644 Arduino/CanGrow/include/Webserver/Page_wifi_HTML.h create mode 100644 Arduino/CanGrow/include/Webserver/footer.h create mode 100644 Arduino/CanGrow/include/Webserver/footer_HTML.h create mode 100644 Arduino/CanGrow/include/Webserver/header.h create mode 100644 Arduino/CanGrow/include/Webserver/header_HTML.h diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index 6ef8c45..8af277d 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -139,6 +139,8 @@ void setup() { WifiConnect(); } + SetupWebserver(); + } bool alrdySaved = false; diff --git a/Arduino/CanGrow/include/CanGrow.h b/Arduino/CanGrow/include/CanGrow.h index f696401..05f67b3 100644 --- a/Arduino/CanGrow/include/CanGrow.h +++ b/Arduino/CanGrow/include/CanGrow.h @@ -62,6 +62,9 @@ struct Config_System { char esp32camIp[16]; char httpUser[32]; char httpPass[32]; + bool httpLogSerial; + + }; Config_System configSystem; diff --git a/Arduino/CanGrow/include/CanGrow_Core.h b/Arduino/CanGrow/include/CanGrow_Core.h index 01ddfc7..8aca97a 100644 --- a/Arduino/CanGrow/include/CanGrow_Core.h +++ b/Arduino/CanGrow/include/CanGrow_Core.h @@ -1,6 +1,6 @@ /* * - * include/CanGrow.h - core stuff header file + * include/CanGrow_Core.h - core stuff header file * * * MIT License diff --git a/Arduino/CanGrow/include/CanGrow_Webserver.h b/Arduino/CanGrow/include/CanGrow_Webserver.h index 2e19fcd..c6b9afe 100644 --- a/Arduino/CanGrow/include/CanGrow_Webserver.h +++ b/Arduino/CanGrow/include/CanGrow_Webserver.h @@ -27,5 +27,33 @@ * */ + +/* + * include webpages header files + */ +#include "Webserver/header.h" + +#include "Webserver/footer.h" + +#include "Webserver/Page_root.h" + +#include "Webserver/Page_wifi.h" + +/* + * include static files files + */ +#include "Webserver/File_cangrow_JS.h" + AsyncWebServer webserver(80); + +/* + * setup all the webhandlers + */ +void SetupWebserver() { + + webserver.on("/", HTTP_GET, WebPage_root); + webserver.on("/cangrow.js", HTTP_GET, WebFile_cangrow_JS); + +} + diff --git a/Arduino/CanGrow/include/Webserver/.h b/Arduino/CanGrow/include/Webserver/.h new file mode 100644 index 0000000..e69de29 diff --git a/Arduino/CanGrow/include/Webserver/File_cangrow_JS.h b/Arduino/CanGrow/include/Webserver/File_cangrow_JS.h new file mode 100644 index 0000000..92924bb --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/File_cangrow_JS.h @@ -0,0 +1,37 @@ +/* + * + * include/Webserver/File_cangrow_JS.h - /cangrow.js header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ + + +const char* File_cangrow_JS PROGMEM = R"( +this is cangrow.js - yay +)"; + +void WebFile_cangrow_JS(AsyncWebServerRequest *request) { + request->send_P(200, "text/plain", File_cangrow_JS); +} diff --git a/Arduino/CanGrow/include/Webserver/Page_grow.h b/Arduino/CanGrow/include/Webserver/Page_grow.h new file mode 100644 index 0000000..cbe5f4a --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/Page_grow.h @@ -0,0 +1,30 @@ +/* + * + * include/Webserver/Page_grow.h - grow page header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ + + diff --git a/Arduino/CanGrow/include/Webserver/Page_grow_HTML.h b/Arduino/CanGrow/include/Webserver/Page_grow_HTML.h new file mode 100644 index 0000000..ceda53e --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/Page_grow_HTML.h @@ -0,0 +1,28 @@ +/* + * + * include/Webserver/Page_grow_HTML.h - grow page HTML header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ diff --git a/Arduino/CanGrow/include/Webserver/Page_root.h b/Arduino/CanGrow/include/Webserver/Page_root.h new file mode 100644 index 0000000..ce2db2e --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/Page_root.h @@ -0,0 +1,34 @@ +/* + * + * include/Webserver/Page_root.h - root page header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ + +#include "Page_root_HTML.h" + +void WebPage_root(AsyncWebServerRequest *request) { + request->send_P(200, "text/plain", Page_root_HTML); +} diff --git a/Arduino/CanGrow/include/Webserver/Page_root_HTML.h b/Arduino/CanGrow/include/Webserver/Page_root_HTML.h new file mode 100644 index 0000000..c1cde90 --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/Page_root_HTML.h @@ -0,0 +1,33 @@ +/* + * + * include/Webserver/Page_root_HTML.h - root page HTML header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ + + +const char* Page_root_HTML PROGMEM = R"( +

CanGrow>

+)"; diff --git a/Arduino/CanGrow/include/Webserver/Page_settings.h b/Arduino/CanGrow/include/Webserver/Page_settings.h new file mode 100644 index 0000000..f0e5a30 --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/Page_settings.h @@ -0,0 +1,30 @@ +/* + * + * include/Webserver/Page_settings.h - settings page header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ + + diff --git a/Arduino/CanGrow/include/Webserver/Page_settings_HTML.h b/Arduino/CanGrow/include/Webserver/Page_settings_HTML.h new file mode 100644 index 0000000..e88c72c --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/Page_settings_HTML.h @@ -0,0 +1,28 @@ +/* + * + * include/Webserver/Page_settings_HTML.h - settings page HTML header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ diff --git a/Arduino/CanGrow/include/Webserver/Page_wifi.h b/Arduino/CanGrow/include/Webserver/Page_wifi.h new file mode 100644 index 0000000..b94b7cd --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/Page_wifi.h @@ -0,0 +1,30 @@ +/* + * + * include/Webserver/Page_wifi.h - wifi page header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ + + diff --git a/Arduino/CanGrow/include/Webserver/Page_wifi_HTML.h b/Arduino/CanGrow/include/Webserver/Page_wifi_HTML.h new file mode 100644 index 0000000..28aaa6b --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/Page_wifi_HTML.h @@ -0,0 +1,28 @@ +/* + * + * include/Webserver/Page_wifi_HTML.h - wifi page HTML header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ diff --git a/Arduino/CanGrow/include/Webserver/footer.h b/Arduino/CanGrow/include/Webserver/footer.h new file mode 100644 index 0000000..b351085 --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/footer.h @@ -0,0 +1,30 @@ +/* + * + * include/Webserver/footer.h - footer page header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ + + diff --git a/Arduino/CanGrow/include/Webserver/footer_HTML.h b/Arduino/CanGrow/include/Webserver/footer_HTML.h new file mode 100644 index 0000000..cdb0189 --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/footer_HTML.h @@ -0,0 +1,28 @@ +/* + * + * include/Webserver/footer_HTML.h - footer page HTML header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ diff --git a/Arduino/CanGrow/include/Webserver/header.h b/Arduino/CanGrow/include/Webserver/header.h new file mode 100644 index 0000000..6f68faa --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/header.h @@ -0,0 +1,30 @@ +/* + * + * include/Webserver/header.h - header page header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ + + diff --git a/Arduino/CanGrow/include/Webserver/header_HTML.h b/Arduino/CanGrow/include/Webserver/header_HTML.h new file mode 100644 index 0000000..41044ae --- /dev/null +++ b/Arduino/CanGrow/include/Webserver/header_HTML.h @@ -0,0 +1,28 @@ +/* + * + * include/Webserver/header_HTML.h - header page HTML header file + * + * + * MIT License + * + * Copyright (c) 2024 DeltaLima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */