You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just updated my platform Espressif 8266 in PlatformIO from version 2.5.0 to version 3.0.0
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
The text was updated successfully, but these errors were encountered:
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
Hi,
I just updated my platform Espressif 8266 in PlatformIO from version 2.5.0 to version 3.0.0
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
The text was updated successfully, but these errors were encountered: