m5stack / Core2-for-AWS-IoT-Kit

Accompanying code for use with AWS IoT Kit content. Works with PlatformIO and ESP-IDF v4.2.
https://m5stack.com/collections/m5-core/products/m5stack-core2-esp32-iot-development-kit-for-aws-iot-edukit
MIT License
127 stars 66 forks source link

Blinky-Hello-World> Connnecting to AWS IoT Core > Not seeing AWS IoT EduKit Configuration in KConfig #25

Closed kevkearney closed 3 years ago

kevkearney commented 3 years ago

Screenshot from 2020-12-30 11-57-25

rashedtalukder commented 3 years ago

Hi, please verify you are in the /Core2-for-AWS-IoT-EduKit/Blinky-Hello-World directory.

kevkearney commented 3 years ago

I am.

kevkearney commented 3 years ago

I was able to set the AWS Iot Endpoint Hostname, but I can't find the next part, for SSID and wifi key.

kevkearney commented 3 years ago

Ah wait, I see it in kconfig.projbuild. Let me see if I can get it to build.

kevkearney commented 3 years ago

Sorry, let me be more clear: I see the kconfig options in the main folder, in kconfig.projbuild, but for some reason when I run the idf.py menuconfig command, they aren't included in the menu.

rashedtalukder commented 3 years ago

The idf.py menuconfig command reads the kconfig files from each of the linked dependencies. In this case: /Core2-for-AWS-IoT-EduKit/Blinky-Hello-World/main/Kconfig.projbuild

For some reason it's not reading it for you. Also run a idf.py fullclean to erase any strange build configurations. Even if you modify your kconfig.projbuild to have your Wi-Fi credentials, when you begin the build process it with generate a sdkconfig file, which contains all of your application configurations and is what the ESP Tools then parse for your linker and compile options.

Can you list your OS and version as well?

kevkearney commented 3 years ago

Sure, let me provide more info:

Ubuntu 20.04 on a clean install specific for the purposes of playing with the m5stack

Here is a pastebin of my output: https://pastebin.com/DkCB55c8

rashedtalukder commented 3 years ago

I am setting up a fresh test environment to see if I can duplicate, just that it takes a while :)

kevkearney commented 3 years ago

No problem, I'm trying to figure it out on my side as well. Let me know where I can be of assistance.

rashedtalukder commented 3 years ago

Resolved in https://github.com/m5stack/Core2-for-AWS-IoT-EduKit/commit/aa99a24f8708c9a65abf1066ec14460bba56a915. Filename case was incorrect (needs capital K). Menuconfig never threw any errors so we didn't catch it. Espressif's documentation also has the wrong file name in their docs. Thanks for filing this issue!

kevkearney commented 3 years ago

Yup, it worked. Thanks