From 7d8fe613f0db445b287e76f5eb367a2e1e2426d8 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Wed, 17 Sep 2025 15:13:05 +0200 Subject: [PATCH 1/2] add reference to external Scheduler and update library dependencies --- library.json | 5 ++++- src/ota.h | 3 +++ src/wifi.h | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/library.json b/library.json index 97e029a..7f97eaa 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Wifi", - "version": "2.0.1", + "version": "2.0.2", "description": "Helper classes for handling wifi connectiviy and OTA", "repository": { @@ -15,6 +15,9 @@ "maintainer": true } ], + "dependencies": { + "arkhipenko/TaskScheduler": "^3.8.5" + }, "license": "MIT", "frameworks": "arduino", "platforms": "*" diff --git a/src/ota.h b/src/ota.h index def614f..e1731c7 100644 --- a/src/ota.h +++ b/src/ota.h @@ -1,4 +1,7 @@ #include +#include + +extern Scheduler ts; namespace Ota { diff --git a/src/wifi.h b/src/wifi.h index 07b92f9..30b09e2 100644 --- a/src/wifi.h +++ b/src/wifi.h @@ -1,7 +1,10 @@ #include #include +#include #include "credentials.h" +extern Scheduler ts; + namespace Wifi { WiFiEventHandler stationConnectedHandler; From 18c8a9e8895c76931dca7c0a67e3f2a091acaf80 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Wed, 17 Sep 2025 12:58:34 +0200 Subject: [PATCH 2/2] add license --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..871f3df --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Nicolae Hodos + +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.