fix(mosq): Support build on older IDF branches

and added build jobs to CI
This commit is contained in:
David Cermak
2025-06-27 14:31:35 +02:00
parent fd41006193
commit 13b90ad14b
3 changed files with 11 additions and 1 deletions

View File

@ -13,7 +13,7 @@ jobs:
name: Mosquitto build
strategy:
matrix:
idf_ver: ["latest", "release-v5.3"]
idf_ver: ["latest", "release-v5.5", "release-v5.4", "release-v5.3", "release-v5.2", "release-v5.1"]
runs-on: ubuntu-22.04
container: espressif/idf:${{ matrix.idf_ver }}
env:

View File

@ -1,5 +1,13 @@
menu "Mosquitto"
config MOSQ_IS_ENABLED
# Invisible option that is enabled if MOSQ is added to the IDF components.
# This is used to "select" CONFIG_ESP_TLS_SERVER option (needed for TLS connection)
# (these are optionally used in mosq)
bool
default "y"
select ESP_TLS_SERVER
config MOSQ_ENABLE_SYS
bool "Enable $SYS topics"
default n

View File

@ -3,6 +3,8 @@
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "esp_netif.h"