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

cannot convert 'String' to 'const char*' for argument '1' to 'int atoi(const char*)' #1

Closed
dzeitman opened this issue Aug 18, 2015 · 4 comments

Comments

@dzeitman
Copy link

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

InternetButton/InternetButton.cpp:235:42: error: cannot convert 'String' to 'const char*' for argument '1' to 'int atoi(const char*)'
         octave = atoi(note.substring(1,2))

Looks like a syntax error...   "did anyone bother to test this"?
@davidfekke
Copy link

I am getting it.

@jenesaisdiq
Copy link
Contributor

Hey guys, sorry I didn't see the notification. Appears to work fine with Photons but breaks with Cores. @dzeitman are you using a Core?

@jenesaisdiq
Copy link
Contributor

Ok, would @dzeitman and @davidfekke mind testing it for me with Cores? Rev'd up to 0.1.5 now. There are a couple of steps you'll need to make sure you're getting the latest version:

  1. In the libraries view, click "Refresh Libraries"
  2. Reload the page (Build) just in case
  3. Double check that the Internet Button library version you're seeing is 0.1.5
  4. Either a) remove the library from your current code and readd it or, easier, b) just "Use an Example" from the library again, and you'll be sure to have it.

@jenesaisdiq
Copy link
Contributor

Sounds like this one's fixed.

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