feat(examples): Add example of using mqtt client on linux

This commit is contained in:
David Cermak
2023-03-31 18:25:41 +02:00
parent 79a0e57ca1
commit c443326a34
7 changed files with 181 additions and 1 deletions

View File

@ -0,0 +1,8 @@
set(requires "")
if(${IDF_TARGET} STREQUAL "linux")
list(APPEND requires esp_stubs esp-tls protocol_examples_common mqtt)
endif()
idf_component_register(SRCS "app_main.c"
INCLUDE_DIRS "."
REQUIRES ${requires})
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")