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

Error during comilation of Metriful_sensor.cpp for Arduino and ESP8266 #27

Closed
MarcoLeti opened this issue Jul 15, 2021 · 2 comments
Closed

Comments

@MarcoLeti
Copy link

:\Program Files (x86)\Arduino\libraries\Metriful_Sensor\Metriful_sensor.cpp:213:31: error: expected ')' before '__INT32'
213 | sprintf(strbuf,"%s%u.%u %" PRIu32 " %u.%u %" PRIu32 " ",isPositive?"":"-", T_intPart, T_fractionalPart,
| ~ ^
| )

@metriful
Copy link
Owner

Hi,

Thanks for reporting this.

It is an error in the latest version of the ESP8266 library (3.0.0 and later). As a work-around please do the following:

  1. In the Arduino IDE menu, go to Tools > Board > Boards Manager. Search for the package named esp8266 by ESP8266 Community.

  2. In the selection box, choose version 2.7.4 (or earlier) and click "install"

  3. The programs will now compile correctly without errors.

NOTE: the IDE will think the library is out of date and may prompt you to update it. Ignore this.

You could report this problem to the developers of the ESP8266 library.

@metriful
Copy link
Owner

This problem is now fixed in the new ESP8266 library version 3.0.2

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