From d83d1f7b80dc366aa86087dc367d62a1dc7ea652 Mon Sep 17 00:00:00 2001 From: matth-x <63792403+matth-x@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:05:36 +0100 Subject: [PATCH 1/2] add MG v717 support --- README.md | 2 +- src/MicroOcppMongooseClient.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fe6b767..c047570 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Mongoose WebSocket adapter for MicroOCPP The following projects must be available on the include path: -- [Mongoose Embedded Networking Library v6.14 / v7.8 / v7.13 - v7.15](https://github.com/cesanta/mongoose/tree/76e6b23a4f0261dd534d33632f42ea1bba99dc85): The MicroOcppMongoose adapter works with the amalgamated files `mongoose.h` and `mongoose.c`. You may need to copy them from the Mongoose-repository into the `src` folder of your project. To configure the Mongoose version in MicroOcppMongoose, set the build flag `MO_MG_USE_VERSION`, e.g. `MO_MG_USE_VERSION=MO_MG_V715`. +- [Mongoose Embedded Networking Library v6.14 / v7.8 / v7.13 - v7.17](https://github.com/cesanta/mongoose/tree/7.17/): The MicroOcppMongoose adapter works with the amalgamated files `mongoose.h` and `mongoose.c`. You may need to copy them from the Mongoose-repository into the `src` folder of your project. To configure the Mongoose version in MicroOcppMongoose, set the build flag `MO_MG_USE_VERSION`, e.g. `MO_MG_USE_VERSION=MO_MG_V717`. - [ArduinoJson v6](https://github.com/bblanchon/ArduinoJson/tree/079ccadbee4100ad0b2d06f11de8c412b95853c1) (no support for v7 yet) - [MicroOCPP](https://github.com/matth-x/MicroOcpp) diff --git a/src/MicroOcppMongooseClient.cpp b/src/MicroOcppMongooseClient.cpp index 2567cb8..368560e 100644 --- a/src/MicroOcppMongooseClient.cpp +++ b/src/MicroOcppMongooseClient.cpp @@ -18,6 +18,7 @@ #define MO_MG_V713 713 #define MO_MG_V714 714 #define MO_MG_V715 715 +#define MO_MG_V717 717 #ifndef MO_MG_USE_VERSION #if defined(MO_MG_VERSION_614) @@ -142,6 +143,12 @@ MOcppMongooseClient::MOcppMongooseClient(struct mg_mgr *mgr, MO_DBG_DEBUG("use MG version %s (tested with 7.8)", MG_VERSION); #elif MO_MG_USE_VERSION == MO_MG_V713 MO_DBG_DEBUG("use MG version %s (tested with 7.13)", MG_VERSION); +#elif MO_MG_USE_VERSION == MO_MG_V714 + MO_DBG_DEBUG("use MG version %s (tested with 7.14)", MG_VERSION); +#elif MO_MG_USE_VERSION == MO_MG_V715 + MO_DBG_DEBUG("use MG version %s (tested with 7.15)", MG_VERSION); +#elif MO_MG_USE_VERSION == MO_MG_V717 + MO_DBG_DEBUG("use MG version %s (tested with 7.17)", MG_VERSION); #endif maintainWsConn(); From 397ed062e2a4d539cc0be663ecb1f1d07318a254 Mon Sep 17 00:00:00 2001 From: matth-x <63792403+matth-x@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:10:01 +0100 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 089b830..680a8c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Unreleased + +### Added +- Mongoose v7.17 support ([#18](https://github.com/matth-x/MicroOcppMongoose/pull/18)) + ## [v1.2.0] - 2024-11-03 ### Added