Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ else()
endif()

# DelegateMQ release to build against (.github/workflows/embedded.yml reads it too)
set(DMQ_GIT_TAG "v3.0.0" CACHE STRING "DelegateMQ release tag (or branch) to fetch")
set(DMQ_GIT_TAG "v3.1.0" CACHE STRING "DelegateMQ release tag (or branch) to fetch")

include(FetchContent)
FetchContent_Declare(
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ Remote sets go through the same range checks as local ones.

## Building

Requires a C++17 compiler and CMake 3.16+. [DelegateMQ](https://github.com/DelegateMQ/DelegateMQ) is fetched from GitHub by CMake's `FetchContent` when CMake configures, at the release tag set by `DMQ_GIT_TAG` in `CMakeLists.txt` (currently `v3.0.0`), and the app links the `DelegateMQ::DelegateMQ` target. To build against a local DelegateMQ checkout, add `-DFETCHCONTENT_SOURCE_DIR_DELEGATEMQ=<path>`; to configure again offline, `-DFETCHCONTENT_FULLY_DISCONNECTED=ON`.
Requires a C++17 compiler and CMake 3.16+. [DelegateMQ](https://github.com/DelegateMQ/DelegateMQ) is fetched from GitHub by CMake's `FetchContent` when CMake configures, at the release tag set by `DMQ_GIT_TAG` in `CMakeLists.txt` (currently `v3.1.0`), and the app links the `DelegateMQ::DelegateMQ` target. To build against a local DelegateMQ checkout, add `-DFETCHCONTENT_SOURCE_DIR_DELEGATEMQ=<path>`; to configure again offline, `-DFETCHCONTENT_FULLY_DISCONNECTED=ON`.

| CMake option | Default | Effect |
| :--- | :--- | :--- |
| `PARAM_REMOTE` | `ON` | Build remote access (`ParamService`, `ParamClient`) |
| `PARAM_BACKEND_SQLITE` | `ON` if SQLite is present | Build the SQLite backend |
| `DMQ_GIT_TAG` | `v3.0.0` | DelegateMQ release (or branch) to fetch |
| `DMQ_GIT_TAG` | `v3.1.0` | DelegateMQ release (or branch) to fetch |

To use it in your project, add `params/` to your build and add DelegateMQ as described in its [build guide](https://github.com/DelegateMQ/DelegateMQ/blob/master/docs/BUILD.md), with its `src/delegate-mq` folder on the include path. On a microcontroller the core is `ParamStore.cpp` plus a backend such as `FlashLogBackend.cpp`.

Expand Down