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

compatibility with eps8266 platform Version 3.0.0 #16

Closed
RunningPenguin opened this issue Jun 5, 2021 · 2 comments
Closed

compatibility with eps8266 platform Version 3.0.0 #16

RunningPenguin opened this issue Jun 5, 2021 · 2 comments

Comments

@RunningPenguin
Copy link

Hi,

I just updated my platform Espressif 8266 in PlatformIO from version 2.5.0 to version 3.0.0

image

Then some projects which are working with the "old" version stopped to work.

It seems that there isn't anymore the function "asprintf" the Errors are:
.pio/libdeps/H801/Homie node collection/src/BME280Node.cpp: In constructor 'BME280Node::BME280Node(const char*, const char*, int, int, Adafruit_BME280::sensor_sampling, Adafruit_BME280::sensor_sampling, Adafruit_BME280::sensor_sampling, Adafruit_BME280::sensor_filter)':
.pio/libdeps/H801/Homie node collection/src/BME280Node.cpp:31:3: error: 'asprintf' was not declared in this scope; did you mean 'asnprintf'?
31 | asprintf(&_temperatureOffsetName, "%s.temperatureOffset", id);
| ^~~~~~~~
| asnprintf
.pio/libdeps/H801/Homie node collection/src/ContactNode.cpp: In constructor 'ContactNode::ContactNode(const char*, const char*, int, ContactNode::TContactCallback)':

I haven't investigated if there are more issues.

As an workaround the addition of the platform version in platformio.ini is possible.

platform = espressif8266 @ 2.5.0

@luebbe
Copy link
Owner

luebbe commented Jun 5, 2021

Thanks for the hint. I'll investigate.

@luebbe
Copy link
Owner

luebbe commented Feb 22, 2022

The problem seems to have solved itself over time. I just upgraded to Version 3.2.0 and don't get any compiler errors, even though PIO places a red squiggle under the asprintf() line

@luebbe luebbe closed this as completed Feb 22, 2022
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

2 participants