Hi! in ESP-IDF v5.3 i have an issue configuring mqtt.
1) #include "mqtt_client.h" can not find include (cmakefiles has requires mqtt )
2) there are no mqtt options in menuconfig
3) adding manually needed sdconfig lines does not help - MQTT is still unavailable in menuconfig and project does not build.
4) i have created a project from sample - menuconfig there shows MQTT
5) when build - MQTT config is not recognized
How to fix? Please help
=========================== sdconfig ===========================
#
# ESP-MQTT Configurations
#
CONFIG_MQTT_PROTOCOL_311=y
CONFIG_MQTT_PROTOCOL_5=n
CONFIG_MQTT_TRANSPORT_SSL=y
# end of ESP-MQTT Configurations
=========================== Build log ===========================
PS C:\dev\00_code\iki-base> idf.py reconfigure build
Executing action: reconfigure
Running cmake in directory C:\dev\00_code\iki-base\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=c:\dev\esp-idf\python_env\idf5.3_py3.12_env\Scripts\python.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 C:\dev\00_code\iki-base"...
-- Building project version: 0.2.0.518-dev
-- ccache will be used for faster recompilation
-- Building ESP-IDF components for target esp32
Processing 2 dependencies:
[1/2] espressif/led_strip (2.5.4)
[2/2] idf (5.3.0)
-- Project sdkconfig file C:/dev/00_code/homeapp-base/sdkconfig
Loading defaults file C:/dev/00_code/homeapp-base/sdkconfig.defaults...
warning: unknown kconfig symbol 'MQTT_PROTOCOL_311' assigned to 'y' in C:/dev/00_code/homeapp-base/sdkconfig.defaults
warning: unknown kconfig symbol 'MQTT_PROTOCOL_5' assigned to 'n' in C:/dev/00_code/homeapp-base/sdkconfig.defaults
warning: unknown kconfig symbol 'MQTT_TRANSPORT_SSL' assigned to 'y' in C:/dev/00_code/homeapp-base/sdkconfig.defaults
MQTT is not shown in menuconfig
-
- Posts: 111
- Joined: Thu Oct 03, 2019 10:52 pm
- Contact:
Re: MQTT is not shown in menuconfig
There is probably a problem copying from the ESP-IDF sample project to your project.
Code: Select all
cp -r esp-idf/example/mqtt/tcp your_project
cd your_project
rm -r build
idf.py build
Who is online
Users browsing this forum: nopnop2002 and 83 guests