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

'millis' was not declared in this scope #19

Closed
zoltangbereczky opened this issue Jul 6, 2015 · 1 comment
Closed

'millis' was not declared in this scope #19

zoltangbereczky opened this issue Jul 6, 2015 · 1 comment

Comments

@zoltangbereczky
Copy link

Veryfing code using this library in Particle Build fails with this error:

HttpClient/HttpClient.cpp:172:37: error: 'millis' was not declared in this scope
     unsigned long lastRead = millis()
HttpClient/HttpClient.cpp:231:22: error: 'delay' was not declared in this scope
             delay(200);
HttpClient/HttpClient.cpp:266:47: error: 'atoi' was not declared in this scope
             aResponse.status = atoi(statusCode.c_str());
ilessiivi pushed a commit to ilessiivi/HttpClient that referenced this issue Jul 7, 2015
@ilessiivi
Copy link

I ran into this problem myself and as suggested here, HttpClient.h needs to have #include "application.h" in order to work on Photons. I created the pull request #20 for this.

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

3 participants