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

Only getting invalid response on Master side #48

Closed
ameerhazo opened this issue Jan 19, 2023 · 2 comments
Closed

Only getting invalid response on Master side #48

ameerhazo opened this issue Jan 19, 2023 · 2 comments

Comments

@ameerhazo
Copy link

ameerhazo commented Jan 19, 2023

Hello @ihormelnyk and everyone, thank you for providing this library to use for free. I'm trying to use the Slave example as a way to simulate a boiler. The Slave is receiving the requests from the Master without any problems. Unfortunately, the responses I have sent out from the Slave back to the Master has always been considered as invalid responses by the Master. Debugging the response frame showed me that I'm only receiving 0s from the Slave. I would appreciate it if anyone who has had this problem to be able to give me tips on what they did to fix the problem. Thank you and kind regards.

Ameer

@ihormelnyk
Copy link
Owner

Hi @ameerhazo,
try to add a delay before sending the response
delay(20); //20..400ms, usually 100ms
ot.sendResponse(response);

@ameerhazo
Copy link
Author

Hello @ihormelnyk, it worked! Thank you so much for being such a lifesaver :D

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

2 participants