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

Failure to Compile with ESP-IDF Framework #263

Open
ccutrer opened this issue Apr 22, 2024 · 1 comment
Open

Failure to Compile with ESP-IDF Framework #263

ccutrer opened this issue Apr 22, 2024 · 1 comment

Comments

@ccutrer
Copy link

ccutrer commented Apr 22, 2024

When I have the following snippet in my config (which I use to enable connecting to MQTT over TLS on my other ESPHome devices):

esp32:
  board: esp32dev
  framework:
    type: esp-idf

compilation fails with the following:

Compiling .pioenvs/john-deere-gdo/src/esphome/components/ratgdo/dry_contact.o
In file included from src/esphome/components/ratgdo/dry_contact.cpp:2:
src/esphome/components/ratgdo/dry_contact.h:3:10: fatal error: SoftwareSerial.h: No such file or directory

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

 #include "SoftwareSerial.h" // Using espsoftwareserial https://github.com/plerup/espsoftwareserial
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/john-deere-gdo/src/esphome/components/ratgdo/dry_contact.o] Error 1
src/esphome/components/ratgdo/cover/ratgdo_cover.cpp: In member function 'void esphome::ratgdo::RATGDOCover::on_door_state(esphome::ratgdo::DoorState, float)':
src/esphome/components/ratgdo/cover/ratgdo_cover.cpp:52:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
             this->position = position;
             ~~~~~~~~~~~~~~~^~~~~~~~~~
src/esphome/components/ratgdo/cover/ratgdo_cover.cpp:53:9: note: here
         case DoorState::UNKNOWN:
         ^~~~
@ccutrer
Copy link
Author

ccutrer commented Apr 22, 2024

I was able to get it to compile (for ESP32/esp-idf/secplus2) with ccutrer@778b6c9, but communication with the GDO failed, so I just reverted to Arduino framework without TLS on these devices for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant