mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 09:22:58 -05:00
Add OrcaMqttConnection, the MQTT 3.1.1 client the OrcaSonar printer connections use, over a Boost.Beast WebSocket (ws:// and wss://). The MQTT protocol is async_mqtt's I/O-independent connection; async_mqtt is added as a header-only dependency. Tests run the class against an in-process mock broker.
12 lines
620 B
CMake
12 lines
620 B
CMake
# async_mqtt is header-only: OrcaMqttConnection uses only its I/O-independent MQTT 3.1.1
|
|
# protocol layer, so the headers are installed as they are, with no configure or build step.
|
|
ExternalProject_Add(dep_AsyncMqtt
|
|
EXCLUDE_FROM_ALL ON
|
|
URL https://github.com/redboltz/async_mqtt/archive/refs/tags/10.3.1.tar.gz
|
|
URL_HASH SHA256=0d4796534d1db9fcf948393d46aae9aa636aab3a2eb44843868358623363ae1c
|
|
DOWNLOAD_DIR ${DEP_DOWNLOAD_DIR}/AsyncMqtt
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_COMMAND ""
|
|
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory "<SOURCE_DIR>/include/async_mqtt" "${DESTDIR}/include/async_mqtt"
|
|
)
|