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

Fixing the battery level for firmware 3.1.8 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixing the battery level for firmware 3.1.8 #3

wants to merge 1 commit into from

Conversation

bepitulaz
Copy link

I'm testing your code in firmware 3.1.8 and the value for battery level
is very different with the value in Flower Care app. The value from the
script is 39% and the value in app is 100%. So, I change the
unpack format to <B6s and now the value is similar.

I also add the Gattlib dependencies in Readme, because when I followed
your instruction the pip gave me error "can't found glib2.0". By the
way, I'm in Ubuntu 16.04.

Note: This code is untested for the firmware < 3.1.8

I'm testing your code in firmware 3.1.8 and the value for battery level
is very different with the value in Flower Care app. The value from the
script is 39% and the value in app is 100%. So, I change the
unpack format to `<B6s` and now the value is similar.

I also add the Gattlib dependencies in Readme, because when I followed
your instruction the pip gave me error "can't found glib2.0". By the
way, I'm in Ubuntu 16.04.
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

Successfully merging this pull request may close these issues.

1 participant