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

Data length error #573

Open
harshit-malik7 opened this issue Jan 20, 2025 · 0 comments
Open

Data length error #573

harshit-malik7 opened this issue Jan 20, 2025 · 0 comments

Comments

@harshit-malik7
Copy link

{"level":"info","message":"Timestamp: 2025-01-17T22:02:20.880Z, msg: "HVAC Id: 1 Fetching HVAC mode", correlationId: 9432, function: getHVACMode, level: info"}
{"level":"error","message":"Timestamp: 2025-01-17T22:02:20.962Z, msg: "HVAC Id: 1 Failed to get HVAC mode because of Error: Data length error, expected 7 got 6", correlationId: 9432, function: getHVACMode, level: error"}
const response = await requestedHVAC.readHoldingRegisters(803,1);
HVACMode = response.data[0];
it seems to happen sometimes but sometimes it goes through. Same issue with readcoils and readDiscreteInputs as well.

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