Code Monkey home page Code Monkey logo

Comments (3)

twlawrenceko avatar twlawrenceko commented on July 20, 2024

It turns out if I copy the examples directory into a new directory and use make menuconfig command, it will not affect the ESP's WiFi bootloader section, why is this and how can I solve this issue?

from esp-homekit-sdk.

shahpiyushv avatar shahpiyushv commented on July 20, 2024

@twlawrenceko , do you mean that you see the problem only when you move the example folder somewhere else? Using the default folder structure and examples, I verified that the network indeed changes if I change it via menuconfig. Have you checked if the network name reflects correctly in your sdkconfig file? CONFIG_APP_WIFI_SSID and CONFIG_APP_WIFI_PASSWORD are the relevant options to check.

The second question isn't really clear. Did you copy the entire examples folder or just the smart_outlet/lightbulb folder? Did you adjust the paths in the example Makefile so that it can find the appropriate components?

from esp-homekit-sdk.

twlawrenceko avatar twlawrenceko commented on July 20, 2024

@twlawrenceko , do you mean that you see the problem only when you move the example folder somewhere else? Using the default folder structure and examples, I verified that the network indeed changes if I change it via menuconfig. Have you checked if the network name reflects correctly in your sdkconfig file? CONFIG_APP_WIFI_SSID and CONFIG_APP_WIFI_PASSWORD are the relevant options to check.

The second question isn't really clear. Did you copy the entire examples folder or just the smart_outlet/lightbulb folder? Did you adjust the paths in the example Makefile so that it can find the appropriate components?

Hello, for the second question, I mean of creating another directory which is under the same parent as examples folder. Since the new folder that I created projects is at the same level of examples folder, shouldn't any of the below path be changed?

├───esp-homekit-sdk
│ ├───examples
│ │ smart_outlet
│ └───projects
│ │ smart_outlet

HOMEKIT_PATH ?= $(abspath $(shell pwd)/../..)
COMMON_COMPONENT_PATH ?= $(abspath $(shell pwd)/../common)

PROJECT_NAME := smart_outlet
EXTRA_COMPONENT_DIRS += $(HOMEKIT_PATH)/components/
EXTRA_COMPONENT_DIRS += $(HOMEKIT_PATH)/components/homekit
EXTRA_COMPONENT_DIRS += $(COMMON_COMPONENT_PATH)

include $(IDF_PATH)/make/project.mk

How should I adjust the path accordingly with my directory setup?

Below is the error log:

../main/app_main.c:39:10: fatal error: app_wifi.h: No such file or directory
 #include <app_wifi.h>
          ^~~~~~~~~~~~
compilation terminated.
[1248/1311] Linking C static library esp-idf/wifi_provisioning/libwifi_provisioning.a
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

Thank you.

from esp-homekit-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.