Hello, I'm styuding EPS-IDF.
Testing "esp-aws-iot", I get a trouble for library import.
(https://github.com/espressif/esp-aws-iot/tree/master)
1. Where does the "example_connect" function(app_main.c / line 56) come from in the MQTT example (https://github.com/espressif/esp-aws-io ... utual_auth)? There is no include command in the example code, so how is it included?
2. Why are the WiFi options hidden? I would like to modify parameters such as WiFi SSID, password, and certificate file in the code rather than the config file. Is there any way to achieve this? It's quite inconvenient as it is now.
Thanks for your help
About library import (i'm newbie T.T)
Re: About library import (i'm newbie T.T)
1.- example_connect
In IDF 5.11
esp-idf\examples\common_components\protocol_examples_common\include
and
esp-idf\examples\common_components\protocol_examples_common\connect.c
2. your sdkconfig file should contain
CONFIG_EXAMPLE_WIFI_SSID=" ..."
CONFIG_EXAMPLE_WIFI_PASSWORD="..."
You can change the values by editing the sdkconfig file or in VScode using the SDK's Cconfiguration editor (VScode).
example_wifi_connect function in esp-idf\examples\common_components\protocol_examples_common\wifi_connect.c
use these config values
In IDF 5.11
esp-idf\examples\common_components\protocol_examples_common\include
and
esp-idf\examples\common_components\protocol_examples_common\connect.c
2. your sdkconfig file should contain
CONFIG_EXAMPLE_WIFI_SSID=" ..."
CONFIG_EXAMPLE_WIFI_PASSWORD="..."
You can change the values by editing the sdkconfig file or in VScode using the SDK's Cconfiguration editor (VScode).
example_wifi_connect function in esp-idf\examples\common_components\protocol_examples_common\wifi_connect.c
use these config values
Who is online
Users browsing this forum: No registered users and 288 guests