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

Multi Arguments send to Arduino #7

Open
mariojfduarte opened this issue Sep 11, 2018 · 1 comment
Open

Multi Arguments send to Arduino #7

mariojfduarte opened this issue Sep 11, 2018 · 1 comment

Comments

@mariojfduarte
Copy link

Hi there,

Is there any way of sending, for instance, an int and a string together as an argument to the Arduino function?

@braingram
Copy link
Owner

Hi!

Strings are handled differently than the other argument types (their length is sent before the string data and are by default limited in length to 16 characters):
https://github.com/braingram/comando/blob/master/libraries/comando/comando.h#L30

I haven't tried to send them along with non-string args but it should work. Let me know if you have any questions, problems or success. I don't have hardware on-hand at the moment to test but might get a chance to write a test.

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