Skip to content

Commit 13b90ad

Browse files
committed
fix(mosq): Support build on older IDF branches
and added build jobs to CI
1 parent fd41006 commit 13b90ad

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/mosq__build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Mosquitto build
1414
strategy:
1515
matrix:
16-
idf_ver: ["latest", "release-v5.3"]
16+
idf_ver: ["latest", "release-v5.5", "release-v5.4", "release-v5.3", "release-v5.2", "release-v5.1"]
1717
runs-on: ubuntu-22.04
1818
container: espressif/idf:${{ matrix.idf_ver }}
1919
env:

components/mosquitto/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
menu "Mosquitto"
22

3+
config MOSQ_IS_ENABLED
4+
# Invisible option that is enabled if MOSQ is added to the IDF components.
5+
# This is used to "select" CONFIG_ESP_TLS_SERVER option (needed for TLS connection)
6+
# (these are optionally used in mosq)
7+
bool
8+
default "y"
9+
select ESP_TLS_SERVER
10+
311
config MOSQ_ENABLE_SYS
412
bool "Enable $SYS topics"
513
default n

components/mosquitto/examples/serverless_mqtt/main/wifi_connect.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
*
44
* SPDX-License-Identifier: Unlicense OR CC0-1.0
55
*/
6+
#include "freertos/FreeRTOS.h"
7+
#include "freertos/event_groups.h"
68
#include "nvs_flash.h"
79
#include "esp_event.h"
810
#include "esp_netif.h"

0 commit comments

Comments
 (0)