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

Update OAPMessage.py #3

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

Update OAPMessage.py #3

wants to merge 1 commit into from

Conversation

manya
Copy link

@manya manya commented Jul 10, 2015

There is a problem with the initialization of self.value as a TLVShort and self.sample_count as a TLVByte for digital channels in the Sensor class. The digital channels send 2 bytes for sample count and 1 byte for value that is why OAPMessage.TLV.parse_value(val_str) fails to parse the value tag () as it runs out of bounds.

There is a problem with the initialization of self.value as a TLVShort and self.sample_count as a TLVByte for digital channels in the Sensor class. The digital channels send 2 bytes for sample count and 1 byte for value that is why OAPMessage.TLV.parse_value(val_str) fails to parse the value tag () as it runs out of bounds.
@manya manya closed this Jul 10, 2015
@manya manya deleted the patch-3 branch July 10, 2015 22:44
@manya manya restored the patch-3 branch July 10, 2015 22:45
@manya manya reopened this Jul 10, 2015
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