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

Unable to access more than 4 byte characteristic #14

Open
MadhavPK opened this issue Aug 10, 2021 · 0 comments
Open

Unable to access more than 4 byte characteristic #14

MadhavPK opened this issue Aug 10, 2021 · 0 comments

Comments

@MadhavPK
Copy link

MadhavPK commented Aug 10, 2021

I am working with Health Thermometer Service (UUID: 0x1809) I have enabled read and notify properties of the Temperature Measurement characteristic (UUID: 0x2A1C) which sends 5 byte data in SFLOAT format. I am using .read() api but the size of given datatype parameter is not enough to read the complete value.

I have tried using uint32 which shows 1 byte less. I have tried using float64 but the read value is always zero. Can you please suggest work around how to read the complete temperature data? Basically what I want to know is how to read large characteristics (say 100 byte long).

@MadhavPK MadhavPK changed the title Unable to access more 5 byte characteristic Unable to access more than 4 byte characteristic Aug 10, 2021
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

1 participant