Skip to content

I can't merge your library with a working web server example #12

@Serejka3

Description

@Serejka3

Your template and this example for simply webserver work separately for me.
But when I try to merge those two projects I have the problems. At first when I add include libraries in your template, several libraries requiries add it to CMakeLists.txt.

set(srcs
        "main.c"
        "sketch.cpp")

set(requires "bluepad32" "bluepad32_arduino" "arduino" "btstack")

idf_component_register(SRCS "${srcs}"
                    INCLUDE_DIRS "."
                    REQUIRES "${requires}" "esp_http_server" "spiffs" "esp_wifi")

OK, but with #include "connect_wifi.h" adding
"esp_wifi" doesn't help.
D:/Arduino/ESP32/ESP-IDF/robot8/main/main.c:31:10: fatal error: connect_wifi.h: No such file or directory 31 | #include "connect_wifi.h" | ^~~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed.
It seems the conflict with standard esp-idf libraries and arduino.
What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions