About library import (i'm newbie T.T)

nanotoly
Posts: 3
Joined: Tue Nov 21, 2023 3:42 am

About library import (i'm newbie T.T)

Postby nanotoly » Tue Nov 21, 2023 3:56 am

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

accacca
Posts: 34
Joined: Mon Aug 06, 2018 4:59 pm

Re: About library import (i'm newbie T.T)

Postby accacca » Tue Nov 21, 2023 7:00 pm

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

Who is online

Users browsing this forum: No registered users and 282 guests