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

Device.Write() throwing Invalid Parameter Error #58

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 1 comment
Open

Device.Write() throwing Invalid Parameter Error #58

GoogleCodeExporter opened this issue Mar 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hi,

I am trying to write a simple sequence of bytes to the device: 
0x01,0x00,0x01,0x01

I am using device.write() and I tried several approaches:

{0x01, 0x00, 0x01, 0x01} = invalid parameter
{0x00, 0x01, 0x00, 0x01, 0x01} = invalid user buffer
{0x02, 0x04, 0x01, 0x00, 0x01, 0x01} = invalid parameter

Do you have any idea why this is not working?

Thanks.

Original issue reported on code.google.com by [email protected] on 20 Nov 2013 at 4:03

@GoogleCodeExporter
Copy link
Author

Try casting your values to bytes.

{(byte)0x01, (byte)0x00, (byte)0x01, (byte)0x01}

I hope this helps!

Original comment by [email protected] on 23 Nov 2013 at 5:13

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant