Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for esp-idf framework? #128

Open
rvalitov opened this issue Oct 8, 2024 · 3 comments · Fixed by #131
Open

Support for esp-idf framework? #128

rvalitov opened this issue Oct 8, 2024 · 3 comments · Fixed by #131
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@rvalitov
Copy link

rvalitov commented Oct 8, 2024

Hi! I'm using ESP32-C3 super mini with the following config:

esp32:
  board: esp32-c3-devkitm-1
  variant: ESP32C3
  framework:
    type: esp-idf

This leads to compilation error:

In file included from src/esphome\components\aux_ac\automation.h:3,
                 from src/esphome.h:15,
                 from src/main.cpp:3:
src/esphome\components\aux_ac\aux_ac.h:7:10: fatal error: Arduino.h: No such file or directory

*****************************************************************
* Looking for Arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Arduino.h"
* Web  > https://registry.platformio.org/search?q=header:Arduino.h
*
*****************************************************************

 #include <Arduino.h>
          ^~~~~~~~~~~
compilation terminated.

If I change the framework to arduino then the compilation works, but in all examples for this chip it's recommended to use esp-idf. So the question is: arduino framework is really obligatory here or it's possible to make it work with esp-idf too?

P.S. The reason is that I also want to use this device as bluetooth proxy, and according to the docs the ESP32 should be compiled as esp-idf for this to work properly.

@GrKoR
Copy link
Owner

GrKoR commented Oct 8, 2024

Hey! I don't even remember what part of Arduino framework did I use in the component. Most likely I can make the code independent from the framework. But it will not be soon cause I haven’t enough time yet.

@GrKoR GrKoR added the enhancement New feature or request label Oct 8, 2024
@GrKoR GrKoR self-assigned this Oct 8, 2024
@itay-sho
Copy link
Contributor

Hey, I have the same problem with the c6 adapter.
Problem is, it seems like c6 doesn't support Arduino at all.
and therefore I cannot compile it (changing framework to arduino results 'invalid option')

Any way to mitigate it?

@GrKoR
Copy link
Owner

GrKoR commented Oct 25, 2024

I don't know the way, because I haven't enough time for digging deeper with it yet. If you are familiar with C/C++ and esp-idf, it would be very appreciated if you create pull request with such code changes.

@GrKoR GrKoR added the help wanted Extra attention is needed label Oct 25, 2024
@GrKoR GrKoR linked a pull request Oct 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants