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

platformio: Version 1.5 does not compile due to old ESP8266mDNS.h version #73

Closed
euphi opened this issue Apr 24, 2016 · 5 comments
Closed
Labels

Comments

@euphi
Copy link
Member

euphi commented Apr 24, 2016

I updated my platformio lib installation, so Homie was updated to 1.5.

Now there a various compile errors, because Homie makes use of some MDNSResponder members that are not available in the latest (quite old) ESP8266 libs in platformio:

.pioenvs/esp12e/Homie_ID555/Homie/Helpers.cpp:21:16: error: 'class MDNSResponder' has no member named 'queryService' int n = MDNS.queryService(service, "tcp"); ^ .pioenvs/esp12e/Homie_ID555/Homie/Helpers.cpp:26:22: error: 'class MDNSResponder' has no member named 'IP' result.ip = MDNS.IP(0); ^ .pioenvs/esp12e/Homie_ID555/Homie/Helpers.cpp:27:24: error: 'class MDNSResponder' has no member named 'port' result.port = MDNS.port(0);

I also updated my complete platformio installation - everything is up-to-date, the compile error persists.

ESP8266mDNS.h is part of the espressif SDK and it seems to be quite old in platformio.

@marvinroger
Copy link
Member

It's not part of the espressif SDK, it's part of the Arduino for ESP8266. The ability to query services has been added in Arduino for ESP8266 2.2.0, which is not yet updated in PlatformIO. You have to wait for platformio/platformio-core#627 to be fixed.

@bertnic
Copy link

bertnic commented Apr 28, 2016

i see there was a patch which i applied. still doesnt work though

@marvinroger
Copy link
Member

Update PlatformIO to 2.9.0, it should fix the issue.

@bertnic
Copy link

bertnic commented Apr 29, 2016

fixed. Thanks a lot Marvin

@marvinroger
Copy link
Member

You're welcome!

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

No branches or pull requests

3 participants