-
Notifications
You must be signed in to change notification settings - Fork 88
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
Estimote.writePowerLevel error (value is out of bounds) #43
Comments
Yes, I think the following change is needed:
should be:
It would be great if you could try this out and maybe submit a pull request. |
Hi, I have experienced the same problem but i think another solution could be to leave the 'write' method unchanged
and add a conversion in writePowerLevel function:
|
@dross94 that could also work. I'd prefer to add/use |
Hello,
When i try to use Estimote.writePowerLevel passing a value other than 7 or 8 i get the following error:
I noticed that power levels 7 and 8 are the only one mapped with >= 0 values and the error is thrown when triyng to write the value to buffer in writeUInt8Characteristic.
So i'm wondering if are negative values causing the problem (missing conversion?) or there is something wrong with my code ?
Thank you in advance.
The text was updated successfully, but these errors were encountered: