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

Fix missing response for readReportConfig command #1235

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

canardos
Copy link
Contributor

Add support for readReportConfigRsp.

It is possible to send a ZCL readReportConfig command via Endpoint.zclCommand, but two issues prevent the response from working.

Firstly, although the readReportConfigRsp command is defined in the Foundation object, the response field that should reference it is missing from the readReportConfig command.

The second problem is that the first parameter (status) is missing from the readReportConfigRsp properties (see ZCL rev.8 section 2.5.10). This results in the read of all other attributes being off by 1-byte and an error being thrown in Utils.getDataTypeClass because dataType has been incorrectly read as 0.

This PR fixes both issues.

@Koenkk Koenkk merged commit 6b29aff into Koenkk:master Nov 13, 2024
1 check passed
@Koenkk
Copy link
Owner

Koenkk commented Nov 13, 2024

Thanks!

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.

2 participants