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

Basic example "StartHere" won't compile #32

Open
AnJ-Github opened this issue Nov 2, 2017 · 8 comments
Open

Basic example "StartHere" won't compile #32

AnJ-Github opened this issue Nov 2, 2017 · 8 comments

Comments

@AnJ-Github
Copy link

AnJ-Github commented Nov 2, 2017

Hello,

I'm trying to run this awesome library but i get huge error message in Arduino IDE as well in VSCode PlatformIO. I don't know if this is right place for such question but i did not find any other place to post this.

Here is error message from Arduino IDE: https://pastebin.com/byiDe5Ue
It is quite long and i don't completely understand it. My only guess is that it have something to do with libraries.
I downloaded every library mentioned in dependencies section as ZIP file, unpacked, and pasted into Arduino IDE installation folder (arduino-1.8.1/libraries).

And here error for VSCode: https://pastebin.com/nCXXF86e
In VSCode i did it twice, first time from PlatformIO manager and then manually (pasted libraries folders as above but into lib folder of PlatformIO). Both attempts failed.

What i'm doing wrong? Or this is just problem with newer versions of some libraries? If so, maybe someone could provide me with full package of needed libraries that you are using and they are working just fine?

Cheers!

@species5618
Copy link
Collaborator

it does not appear to be related to time, but have you made the tweaks required for time.h as described in README.md

@AnJ-Github
Copy link
Author

I did it now but nothing changed 😞

@AnJ-Github
Copy link
Author

AnJ-Github commented Nov 2, 2017

I downloaded some older commit 3d030db of ESPAsyncTCP and now error form Arduino IDE looks like this: https://pastebin.com/Z9J4JkUf

And error from VSCode looks like error mentioned in tweak for time.h. But how can i repair this for VSCode not for Arduino IDE?
https://pastebin.com/uKWVnSg6

@QuadCorei8085
Copy link

QuadCorei8085 commented Nov 12, 2017

@gumaa: You have to browse the history and issues of ESPAsyncTCP, there are functions with reworked inputs (casts) you have to adapt that commit locally on your clone/copy. Also in headers. This made it work for me the example works afterwards in RELEASE mode.

Uncommenting the RELEASE define however leads to errors saying
no matching function for call to 'HardwareSerial::printf(String)'

The issue is that @line 1334 and 1336 the printf method is not overloaded to handle "String&", replacing it to "print" solves the problem.

@pettib
Copy link

pettib commented Mar 1, 2018

I´m trying to compile starthere and got the following problem
AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266\time.c:19:18: fatal error: time.h: No such file or directory
#include <time.h>

I have done the changes that mention in readme.
Downloaded the new time libary as well.

@species5618
Copy link
Collaborator

Could you try upgrading the esp8166 core to 2.4.0

@JeffersonRyan
Copy link

After much trial and error, I was only able to succesffully compile the project using the last library release as of today, using Arduino 1.8.5 and ESP8266 core v2.4.1.

A different version of the IDE or the core and the project will not compile.

@JeffersonRyan
Copy link

Warning: You are going to need the ArduinoJSON v5.x library. The 6.x version will not compile.

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

5 participants