Skip to content

Fixing the battery level for firmware 3.1.8#3

Open
bepitulaz wants to merge 1 commit intomarcelrv:masterfrom
usetania:fix/firmware-3.1.8
Open

Fixing the battery level for firmware 3.1.8#3
bepitulaz wants to merge 1 commit intomarcelrv:masterfrom
usetania:fix/firmware-3.1.8

Conversation

@bepitulaz
Copy link
Copy Markdown

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